]> git.giacomolli.uk - onechat/commit
Version the package and command from the commit
authorAnderson A. Giacomolli <agiacomolli@gmail.com>
Tue, 10 Nov 2026 00:54:15 +0000 (21:54 -0300)
committerAnderson A. Giacomolli <agiacomolli@gmail.com>
Tue, 10 Nov 2026 00:54:15 +0000 (21:54 -0300)
commit3b7a3676dc3614ee3099e8798b5d0c07cb116b93
treedf4331c5a328f7d6454c5e12cc85c368f9110ed5
parent016d46008fc9726d2617e4e3ea098113f34c7636
Version the package and command from the commit

The Nix package and the version command use the commit date and short
revision, with a dirty suffix for a changed tree. Direct Go builds keep
the dev version. The install check compares the binary version with the
package version so a missing linker value fails the build.
README.rst
command_test.go [new file with mode: 0644]
flake.nix
main.go
nix/package.nix