diff options
author | Vincent Ambo <mail@tazj.in> | 2020-12-20T16·55+0100 |
---|---|---|
committer | tazjin <mail@tazj.in> | 2020-12-20T17·54+0000 |
commit | 86ec8c1b9408e4b59d2332913a9678e24ec186ad (patch) | |
tree | 17290d7d576379399f0a7c89ffd985a2b43c4ab0 /ops | |
parent | 5d2d80795dcd5709db55eba6e54433c71d45981e (diff) |
fix(whitby): Disable git's gc.autoDetach feature r/2022
This feature can cause object removal to happen while the git folder is in use in Buildkite, causing CI to fail semi-reegularly. Change-Id: Ide1a9b2f1761be029e97a058c1983b4cff5e27bf Reviewed-on: https://cl.tvl.fyi/c/depot/+/2285 Tested-by: BuildkiteCI Reviewed-by: multi <depot@in-addr.xyz>
Diffstat (limited to 'ops')
-rw-r--r-- | ops/nixos/whitby/default.nix | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ops/nixos/whitby/default.nix b/ops/nixos/whitby/default.nix index b9f0b48122f2..c54a17b47449 100644 --- a/ops/nixos/whitby/default.nix +++ b/ops/nixos/whitby/default.nix @@ -147,6 +147,12 @@ in lib.fix(self: { ''; }; + # Disable background git gc system-wide, as it has a tendency to break CI. + environment.etc."gitconfig".source = depot.third_party.writeText "gitconfig" '' + [gc] + autoDetach = false + ''; + time.timeZone = "UTC"; nix = { |