We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
refs/tags/v${version}
fetchFromGitHub
When using the fetchFromGitHub fetcher, it is recommended to prefix the rev with refs/tags to prevent branch-tag mismatch.
rev
refs/tags
Currently, nix-init generates
nix-init
src = fetchFromGitHub { owner = "foo"; repo = "bar"; rev = "refs/tags/${version}"; # or "refs/tags/v${version}" hash = "..."; };
Ideally, it should generate:
src = fetchFromGitHub { owner = "foo"; repo = "bar"; tag = version; # or "v${version}" hash = "..."; };
The text was updated successfully, but these errors were encountered:
It's better to let nix-init generate tag
tag
Sorry, something went wrong.
Definitely, I inverted "before" and "after". I edited the initial message.
The original message still mentions rev instead of tag for the "after" case, btw :)
Wow, that was harder than expected... Fixed
No branches or pull requests
When using the
fetchFromGitHub
fetcher, it is recommended to prefix therev
withrefs/tags
to prevent branch-tag mismatch.Currently,
nix-init
generatesIdeally, it should generate:
The text was updated successfully, but these errors were encountered: