about summary refs log tree commit diff
path: root/nix
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2021-08-29T12·33+0300
committertazjin <mail@tazj.in>2021-08-29T12·41+0000
commitd67b9e319263b012d8e7fe3ceceab88848c073d6 (patch)
tree36ffd6035422191f7b8ca956cd4d545efaa43bfe /nix
parent43269730e66c9a95467f8699a8b18fce8fef4a79 (diff)
refactor(bufCheck): Assume bufCheck is run in depot checkout r/2800
Rather than copying the depot path into the store on each commit,
assume bufCheck is run in the depot checkout (which it is, in
Buildkite land).

Change-Id: I4a4af2e5b45acad2d18218e503880ee63b20f078
Reviewed-on: https://cl.tvl.fyi/c/depot/+/3462
Tested-by: BuildkiteCI
Reviewed-by: sterni <sternenseemann@systemli.org>
Diffstat (limited to 'nix')
-rw-r--r--nix/bufCheck/default.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/nix/bufCheck/default.nix b/nix/bufCheck/default.nix
index 7613d9215b..039303ba68 100644
--- a/nix/bufCheck/default.nix
+++ b/nix/bufCheck/default.nix
@@ -3,7 +3,7 @@
 { depot, pkgs, ... }:
 
 pkgs.writeShellScriptBin "ci-buf-check" ''
-  ${depot.third_party.bufbuild}/bin/buf check lint --input "${depot.path}"
+  ${depot.third_party.bufbuild}/bin/buf check lint --input .
   # Report-only
-  ${depot.third_party.bufbuild}/bin/buf check breaking --input "${depot.path}" --against-input "${depot.path}/.git#branch=canon" || true
+  ${depot.third_party.bufbuild}/bin/buf check breaking --input "." --against-input "./.git#branch=canon" || true
 ''