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

Snapshot dependencies don't work #288

Closed
mqus opened this issue Mar 15, 2020 · 3 comments
Closed

Snapshot dependencies don't work #288

mqus opened this issue Mar 15, 2020 · 3 comments

Comments

@mqus
Copy link
Collaborator

mqus commented Mar 15, 2020

If I try to depend on floor like its written in the Snapshot section in the readme, it will throw the following error:

Error on line 21, column 11: Invalid description in the "floor_generator" pubspec on the "floor_annotation" dependency: "../floor_annotation/" is a relative path, but this isn't a local pubspec.
                                                                       
21      path: ../floor_annotation/                                     
              ^^^^^^^^^^^^^^^^^^^^                                     

Sadly, this does not seem to work, as others have already discovered:
https://stackoverflow.com/questions/54555612/how-to-organise-multi-package-flutter-project-and-use-it-as-dependency

It seems to be covered in this issue: dart-lang/pub#449

Personally, I'll probably work around this by using git submodules in my project.

@jeanmatthieud
Copy link

I have the same problem.
For development, I cloned the floor repo and created a local dependency.

Even if you cannot fix this bug now, could you create a new release of the library?
You added a lot of neat features since 0.11.0. A beta release will be enough :)

@vitusortner
Copy link
Collaborator

I've, for now, removed the snapshot version instructions from the README until we figure something out. #301

@mqus
Copy link
Collaborator Author

mqus commented May 5, 2020

As talked about in #298 I will be closing this issue since pub simply does not support snapshots as we need them and it doesn't seem to be happening anytime soon:

I don't think we'll prioritize work on this issue in the short-term future.

Your best bet might be to make a local check-out and use a path-dependency to that.
(dart-lang/pub#2447 (comment))

As mentioned, alternatives are releasing often and cloning the project locally or per git submodules (which can then be checked out into a version system themselves)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

3 participants