Your browser sucks, JavaScript disabled! Gunnar's console needs JavaScript and WebAssembly. Git over SSH on port 2222 does not.

nordisk/korp-collectors

.nornir/version-scheme.md

korp-collectors — version scheme

What it is. How this leaf reports which build is running — the crate version plus the exact git commit it was compiled from — per the LAW that every daemon binary must be able to answer --version with a git hash.

The stamp

The canonical build stamp is:

<name> v<CARGO_PKG_VERSION> (<git-hash>)

e.g. korp-collectors v0.1.7 (38e6b2c7e0db7cff88e219f8b441d208f211e416).

How the hash is captured — pure filesystem, zero shell

build.rs reads the git state off disk itself — it never shells out to git and never spawns a Command (the pure-Rust / zero-shell LAW). It resolves:

It emits cargo:rerun-if-changed for HEAD, the resolved ref file, and packed-refs, so the stamp refreshes when — and only when — the commit moves.

Where it surfaces