Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add conflict in fork scenario #201

Merged
merged 1 commit into from
Jul 15, 2024

Conversation

konstin
Copy link
Member

@konstin konstin commented Jul 14, 2024

Add a scenario where we fail after forking. The error message is already not bad:

  × No solution found when resolving dependencies:
  ╰─▶ Because only fork-basic-b-03509d5c==1.0.0 is available and fork-basic-b-03509d5c==1.0.0 depends on fork-basic-d-03509d5c==1,
      we can conclude that all versions of fork-basic-b-03509d5c depend on fork-basic-d-03509d5c==1.
      And because fork-basic-c-03509d5c==1.0.0 depends on fork-basic-d-03509d5c==2 and only fork-basic-c-03509d5c==1.0.0 is
      available, we can conclude that all versions of fork-basic-b-03509d5c and all versions of fork-basic-c-03509d5c are
      incompatible.
      And because fork-basic-a-03509d5c{sys_platform == 'darwin'}==1.0.0 depends on fork-basic-b-03509d5c and fork-basic-c-03509d5c,
      we can conclude that fork-basic-a-03509d5c{sys_platform == 'darwin'}==1.0.0 cannot be used.
      And because only the following versions of fork-basic-a-03509d5c{sys_platform == 'darwin'} are available:
          fork-basic-a-03509d5c{sys_platform == 'darwin'}==1.0.0
          fork-basic-a-03509d5c{sys_platform == 'darwin'}>=2
      and fork-basic-03509d5c==0.0.0 depends on fork-basic-a-03509d5c{sys_platform == 'darwin'}<2, we can conclude that
      fork-basic-03509d5c==0.0.0 cannot be used.
      And because only fork-basic-03509d5c==0.0.0 is available and you require fork-basic-03509d5c, we can conclude that the
      requirements are unsatisfiable.

Add a scenario where we fail after forking. The error message is already not bad:

```
  × No solution found when resolving dependencies:
  ╰─▶ Because only fork-basic-b-03509d5c==1.0.0 is available and fork-basic-b-03509d5c==1.0.0 depends on fork-basic-d-03509d5c==1,
      we can conclude that all versions of fork-basic-b-03509d5c depend on fork-basic-d-03509d5c==1.
      And because fork-basic-c-03509d5c==1.0.0 depends on fork-basic-d-03509d5c==2 and only fork-basic-c-03509d5c==1.0.0 is
      available, we can conclude that all versions of fork-basic-b-03509d5c and all versions of fork-basic-c-03509d5c are
      incompatible.
      And because fork-basic-a-03509d5c{sys_platform == 'darwin'}==1.0.0 depends on fork-basic-b-03509d5c and fork-basic-c-03509d5c,
      we can conclude that fork-basic-a-03509d5c{sys_platform == 'darwin'}==1.0.0 cannot be used.
      And because only the following versions of fork-basic-a-03509d5c{sys_platform == 'darwin'} are available:
          fork-basic-a-03509d5c{sys_platform == 'darwin'}==1.0.0
          fork-basic-a-03509d5c{sys_platform == 'darwin'}>=2
      and fork-basic-03509d5c==0.0.0 depends on fork-basic-a-03509d5c{sys_platform == 'darwin'}<2, we can conclude that
      fork-basic-03509d5c==0.0.0 cannot be used.
      And because only fork-basic-03509d5c==0.0.0 is available and you require fork-basic-03509d5c, we can conclude that the
      requirements are unsatisfiable.
```
@konstin konstin merged commit c338e0d into astral-sh:main Jul 15, 2024
6 checks passed
@konstin konstin deleted the konsti/conflict-in-fork branch July 15, 2024 07:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants