Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[tailscale] cmd/dist: support embedding of toolchain rev by env var
Git checkouts are not reproducible (in particular, the .git directory's hashes vary according to the moods of git re: packing and other local settings), so building our Go toolchain via Nix leads to source hashes that change from machine to machine and over time. Since Nix already knows the exact git revision it's building from, this change lets Nix provide that hash to cmd/dist directly, skipping the rooting around in .git to find the right hash. Signed-off-by: Jenny Zhang <[email protected]> (cherry picked from commit 6a17f14) (cherry picked from commit d88c63d)
- Loading branch information