diff options
author | Vincent Ambo <mail@tazj.in> | 2022-04-21T14·28+0200 |
---|---|---|
committer | clbot <clbot@tvl.fyi> | 2022-04-21T17·48+0000 |
commit | 119462d720306930e76b69b2f2772e6f08cd1ce0 (patch) | |
tree | 75a33dd11f5fd77f4b2c0b5edaee9d9f8f195516 /tools/nixery | |
parent | c05c4995abab6fd8e5eaab861b8d14febf76a3b8 (diff) |
fix(nixery): Avoid impure reading of .git directory r/3987
Change-Id: I67405f9c9bd9cc8cb34fafff80e30b2fca53a2b3 Reviewed-on: https://cl.tvl.fyi/c/depot/+/5502 Tested-by: BuildkiteCI Reviewed-by: tazjin <tazjin@tvl.su> Autosubmit: tazjin <tazjin@tvl.su>
Diffstat (limited to 'tools/nixery')
-rw-r--r-- | tools/nixery/default.nix | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/tools/nixery/default.nix b/tools/nixery/default.nix index 6c0226f2fb04..b5575be50765 100644 --- a/tools/nixery/default.nix +++ b/tools/nixery/default.nix @@ -21,11 +21,9 @@ with pkgs; let inherit (pkgs) buildGoModule; - # Current Nixery commit - this is used as the Nixery version in - # builds to distinguish errors between deployed versions, see - # server/logs.go for details. - gitDir = if builtins.pathExists ./.git then ./.git else ../../.git; - nixery-commit-hash = args.commitHash or pkgs.lib.commitIdFromGitRepo gitDir; + # Avoid extracting this from git until we have a way to plumb + # through revision numbers. + nixery-commit-hash = "depot"; # Go implementation of the Nixery server which implements the # container registry interface. |