-
Notifications
You must be signed in to change notification settings - Fork 229
pub get
on a commit that's not on a branch
#2543
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
Not sure I fully understand the issue. Why should pub get not support a commit that is not a branch? I would imagine that makes ...Or is this about git dependencies? Even those I would be highly annoyed if not everything supported by git as a valid ref was supported. |
Maybe it should be documented that |
How would pub know if a ref is on a branch? |
Still not sure I follow. Pub has (or should have) exactly the same requirements for git refs as git itself. If a commit gets garbage collected that is the same issue as for all of git. |
Yes, so it is not supported to have a non-branch commit checked out and run But this happens in the wild, e.g. people rewrite their histories. And then |
Ah - I had not understood that it would retry forever. |
See flutter/flutter#60504.
pub get
on a commit that's not on a branch (in this case after history was rewritten on purpose).Should pub support commits that are not on a branch and might be GCed?
The text was updated successfully, but these errors were encountered: