-
Notifications
You must be signed in to change notification settings - Fork 231
Pub fails: Package path has no versions that match <empty> #25
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
Comments
<img src="https://avatars.githubusercontent.com/u/3276024?v=3" align="left" width="48" height="48"hspace="10"> Comment by anders-sandholm |
<img src="https://avatars.githubusercontent.com/u/188?v=3" align="left" width="48" height="48"hspace="10"> Comment by nex3 This isn't really an issue with pub. Your package's dependencies don't allow any version of path, and pub is telling you why. I suggest filing an issue against google_oauth2_client, since its (highly unusual) ">=1.0.0 <1.2.0" dependency on path seems to be the root of the problem. Added AsDesigned label. |
This comment was originally written by [email protected] Ok, I got it. But I'm sure this project was built in the past.
|
<img src="https://avatars.githubusercontent.com/u/405837?v=3" align="left" width="48" height="48"hspace="10"> Comment by zoechi
|
This comment was originally written by [email protected] Yes, I'm sure. Double checked. |
<img src="https://avatars.githubusercontent.com/u/188?v=3" align="left" width="48" height="48"hspace="10"> Comment by nex3
Packages can specify constraints on the Dart SDK itself, saying "I only work with these versions." It's possible that the older SDK matched these constraints for the constellation of packages you had selected, and the newer SDK does not.
You can use dependency overrides (https://www.dartlang.org/tools/pub/dependencies.html#dependency-overrides) to force pub to select certain package versions regardless of constraints, but be aware that constraints usually exist for a reason and violating them can break your app.
That's not quite accurate. "pub get" will prefer locked versions of packages, but if they aren't compatible for any reason it'll unlock them and try to find recent versions that work instead. |
Originally opened as dart-lang/sdk#23485
This issue was originally filed by [email protected]
I'm trying to build a project that was already built successfully a year ago,
but today (with pub 1.10.0) pub get fails to resolve it's dependencies
To reproduce the problem, git clone this https://github.com/sethladd/tilebasedwordsearch project
and then run pub get in it.
It says the following:
Resolving dependencies... (27.0s)
Package path has no versions that match <empty> derived from:
I'm using dart sdk 1.10.0 on macosx
I know there is a bad style of pubspec.yaml where most of the packages marked as any instead of versions,
and i tried to put there a versions from pubspec.lock file, but without any success.
Errors in pub get are varying during version substitution, but result is the same.
Tracing it with pub get --verbose, i found the following line, not sure if it's ok:
SLVR: | | | | | | | | | | | no versions for path match <empty>
Starting from it, pub get tries to vary other packages versions, but still fails.
The text was updated successfully, but these errors were encountered: