Skip to content

kernel-builder: use tag argument instead of rev for tags in fetchFromGitHub#432

Merged
danieldk merged 1 commit intohuggingface:mainfrom
NickCao:main
Apr 9, 2026
Merged

kernel-builder: use tag argument instead of rev for tags in fetchFromGitHub#432
danieldk merged 1 commit intohuggingface:mainfrom
NickCao:main

Conversation

@NickCao
Copy link
Copy Markdown
Contributor

@NickCao NickCao commented Apr 8, 2026

The tag argument is prefixed with refs/tags/ to construct the full rev in fetchgit[1], preventing rev confusion (e.g. where a branch and a tag have the same name), thus it's recommended to use the tag argument over the rev argument for tags.

[1] https://github.com/NixOS/nixpkgs/blob/55d32361d6c1f304e6c88a0dbebb19fb1044bbd7/pkgs/build-support/fetchgit/default.nix#L31

…GitHub

The tag argument is prefixed with refs/tags/ to construct the full rev
in fetchgit[1], preventing rev confusion (e.g. where a branch and a
tag have the same name), thus it's recommended to use the tag argument
over the rev argument for tags.

[1] https://github.com/NixOS/nixpkgs/blob/55d32361d6c1f304e6c88a0dbebb19fb1044bbd7/pkgs/build-support/fetchgit/default.nix#L31

Signed-off-by: Nick Cao <ncao@redhat.com>
Copy link
Copy Markdown
Member

@danieldk danieldk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I always forget using tag, old habits. Thanks a lot!

@danieldk danieldk merged commit 62e096f into huggingface:main Apr 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants