-
Notifications
You must be signed in to change notification settings - Fork 33
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
pin-depends fails to parse tags #12
Comments
Thanks! As a workaround, you can just put the SHA1 in there for now. I will look into the issue. |
Should be fixed now, please confirm :) |
This fails with:
because |
Oooff, right, that's annoying. |
I'm not sure I know of a good solution. We need to somehow make |
If you want to label this as wontfix that's fine, since it seems like a limitation of |
I'll just try to fix the |
This (maybe) does it, although I'm not sure. NixOS/nix#6766 At least it seems to resolve this specific problem. |
Also note that I recommend against using tags (or branches) anyways, since they make the evaluation impure and therefore much less reproducible. Just including the commit hashes is a simple enough change, but it can save a lot of headaches for other people or even future you when trying to build the project in five years. Specifying a commit sha1 hash will allow you to build without |
Describe the bug
When dealing with a
pin-depend
URL with a tag, such asgit+https://github.com/foo/bar#0.1.0
, opam-nix parses the tag as a SHA1:To Reproduce
Here's my
flake.nix
:and
cooltt.opam
:Expected behavior
It should pull from the tag.
Environment
The text was updated successfully, but these errors were encountered: