[Nix#3701] fetchGit can't handle annotated tags #152
Labels
No labels
Affects/CppNix
Affects/Nightly
Affects/Only nightly
Affects/Stable
Area/build-packaging
Area/cli
Area/evaluator
Area/fetching
Area/flakes
Area/language
Area/lix ci
Area/nix-eval-jobs
Area/profiles
Area/protocol
Area/releng
Area/remote-builds
Area/repl
Area/repl/debugger
Area/store
bug
Context
contributors
Context
drive-by
Context
maintainers
Context
RFD
crash 💥
Cross Compilation
devx
docs
Downstream Dependents
E/easy
E/hard
E/help wanted
E/reproducible
E/requires rearchitecture
imported
Language/Bash
Language/C++
Language/NixLang
Language/Python
Language/Rust
Needs Langver
OS/Linux
OS/macOS
performance
regression
release-blocker
stability
Status
blocked
Status
invalid
Status
postponed
Status
wontfix
testing
testing/flakey
Topic/Large Scale Installations
ux
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: lix-project/lix#152
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Upstream-Issue: NixOS/nix#3701
Description
Currently
builtins.fetchGit
does not seem to handle annotated tags and fails with:Reproduction
You can see me reproduce this in https://github.com/status-im/status-react/issues/10825.
Docs
This was reported once in #2385 and a fix for docs was applied in
ae244af242
by adding:To documentation of
builtins.fetchGit
, but that change does not seem to be there in current docs:https://nixos.org/nix/manual/#ssec-builtins
And there doesn't appear to be any fix in sight.
Solutions
If the fix is difficult to implement for
builtins.fetchGit
could we at least update the documentation with this information and makefetchGit
return an error that actually makes sense instead of thistrying to write non-commit object
nonsense?It seems to be more complex than this. On Lix and Nix 2.18 alike,
builtins.fetchGit
fails to fetch any tag unless it's prefixed withrefs/tags/
, but if can fetch annotated tags if they are prefixed. In Nix 2.3 however,builtins.fetchGit
can fetch unannotated tags unprefixed, but annotated tags needrefs/tags/
.Lix:
2.18:
2.3:
This issue was mentioned on Gerrit on the following CLs:
builtins.fetchGit
from 2.3")