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

Improve solve traces when packages are from workspaces #4356

Open
sigurdm opened this issue Aug 19, 2024 · 0 comments
Open

Improve solve traces when packages are from workspaces #4356

sigurdm opened this issue Aug 19, 2024 · 0 comments
Labels
type-enhancement A request for a change that isn't a bug

Comments

@sigurdm
Copy link
Contributor

sigurdm commented Aug 19, 2024

With a workspace containing a and b:

name: b
environment: 
  sdk: ^3.5.0-259.0.dev
resolution: workspace

Then, inside A, I tried to depend on B with:

name: a
environment: 
  sdk: ^3.5.0-259.0.dev
resolution: workspace
dependencies:
  b: ^1.0.0

But got:

Because _ depends on a which depends on b ^1.0.0, b ^1.0.0 is required.
So, because _ depends on b, version solving failed.

Maybe we could improve the pub get error message when the constraint issue point to a package from the workspace?

Such as:

Because A depends B ^1.0.0 from workspace, B ^1.0.0 is required.
Because B from workspace has no version, no B ^1.0.0 version is found.
So, because A depends on B, version solving failed
@sigurdm sigurdm added the type-enhancement A request for a change that isn't a bug label Aug 19, 2024
@sigurdm sigurdm transferred this issue from dart-lang/sdk Aug 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-enhancement A request for a change that isn't a bug
Projects
None yet
Development

No branches or pull requests

1 participant