fix(nix): version untagged flake builds as devel+<short-sha> #118
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/flake-devel-version"
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?
Flakes cannot see Git tags (
self.sourceInfohasrev/shortRev/revCount, never the ref), sonix buildwithoutWRAPTOOL_VERSIONstamped a fake0.0.0-dev.It now falls back to the same
devel+<short-sha>[-dirty]identityinternal/buildinfogives a localgo build, fromself.revorself.dirtyRev. Release builds are unchanged: they still pass the tag's version throughWRAPTOOL_VERSION=… nix build --impure.docs/contributing.qmdnow describes the new fallback.Verified:
nix eval .#packages.x86_64-linux.default.version→"devel+8cffb8c63ff1-dirty"nix build→ binary printswraptool version devel+8a24b7b9b247🤖 Generated with Claude Code