The commit that runs: in the footer and at /version
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:
1 parent
a2cedcdd7e
commit
17426dba12
9 files changed
+140
-4
No files matched your search
@@ -58,6 +58,10 @@
|
||||
// {
|
||||
inherit cargoArtifacts;
|
||||
cargoExtraArgs = "--locked --bin visa";
|
||||
# The commit for the footer and /version (build.rs). Set here only,
|
||||
# not in `common`, so the dependencies' build stays the same from
|
||||
# commit to commit.
|
||||
VISA_COMMIT = self.rev or self.dirtyRev or "";
|
||||
meta = {
|
||||
description = "Immigration records, deadlines and extension packs for foreigners in Thailand";
|
||||
homepage = "https://git.b4l.co.th/B4L/visa";
|
||||
|
||||
Reference in new issue
Block a user