The commit that runs: in the footer and at /version
CI / secret scan (push) Successful in 5s
CI / fmt, clippy, tests (push) Successful in 24s

Every page's footer names the commit the binary is built from, with a link
to it on the forge, and /version answers with the full hash, open without a
login like /healthz, so a script can tell which release is live.

build.rs writes COMMIT: from VISA_COMMIT, which the flake sets to its
source's revision (a Nix build has no .git), else from git in a checkout,
else empty. The flake sets it on the package alone, not on the
dependencies' build, which so stays cached from commit to commit.
This commit is contained in:
grabowski committed 2026-11-18 14:41:16 +07:00
1 parent a2cedcdd7e
commit 17426dba12
9 files changed
+140 -4

No files matched your search

+6
View File
@@ -121,3 +121,9 @@ A release is a push to `main` here, then `nix flake update visa` in
cnx-network-clan and a deploy of cnx01. The fleet's VM test `checks.visa`
signs in through a fake provider, adds a person and checks the audit log on
the real PostgreSQL module.
Which commit runs: every page's footer names it, with a link to it, and
https://visa.buildfor.life/version answers with the full hash, without a
login, so `curl https://visa.buildfor.life/version` tells whether a release
is live. A Nix build takes the commit from the flake's source; a build in a
checkout asks git.