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

path based dev_dependency now causes failures for users? #1369

Closed
jakemac53 opened this issue Dec 21, 2015 · 4 comments
Closed

path based dev_dependency now causes failures for users? #1369

jakemac53 opened this issue Dec 21, 2015 · 4 comments
Labels
needs-info Additional information needed from the issue author type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)

Comments

@jakemac53
Copy link
Contributor

I recently published a new version of the initialize package, and it has started giving this error to users when they upgrade:

Error on line 1, column 1 of https://pub.dartlang.org/api/packages/initialize: Invalid description: "test_package" is a relative path, but this isn't a local pubspec.

This is not a new dependency (it has been around for many versions). It seems that maybe dev dependencies aren't being skipped over properly? I also go no errors on pub lish.

@jakemac53 jakemac53 added the type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) label Dec 21, 2015
@jakemac53
Copy link
Contributor Author

It also seems that this might be breaking the upgrade process, I have had to delete my .pub directory and rerun pub upgrade in order to actually get the new version (even though the pubspec.lock is updated with the new version).

@nex3
Copy link
Member

nex3 commented Jan 4, 2016

What version of pub created the .pub directory, and what version of pub produced the error? Can you provide a simple way for me to reproduce this?

@nex3 nex3 added the needs-info Additional information needed from the issue author label Jan 4, 2016
@jakemac53
Copy link
Contributor Author

Initially you can create a project like this gist. Then run pub get, pub build bin, and dart build/bin/main.dart, this should work and you will see hello print in the console.

Now edit your pubspec.yaml by removing the analyzer dependency and changing the initialize dependency to initialize: '>=0.6.0 <0.7.0'. Run pub upgrade and you will see the error message. If you then run pub build bin you will get a build error because the initialize package has not actually been upgraded.

Next, remove your .pub directory and run pub upgrade again. Now if you run pub build bin it will work and dart build/bin/main.dart should also work (and print hello).

@jakemac53
Copy link
Contributor Author

Oh also fwiw I am on version 1.14.0-dev.4.0 of the sdk

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-info Additional information needed from the issue author type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)
Projects
None yet
Development

No branches or pull requests

2 participants