-
-
Notifications
You must be signed in to change notification settings - Fork 37
Open
Description
When using the fetchFromGitHub fetcher, it is recommended to prefix the rev with refs/tags to prevent branch-tag mismatch.
Currently, nix-init generates
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 = "...";
};kira-bruneau, 0x4A6F, kachick, Moraxyc, eljamm and 2 more
Metadata
Metadata
Assignees
Labels
No labels