From d67b9e319263b012d8e7fe3ceceab88848c073d6 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sun, 29 Aug 2021 15:33:09 +0300 Subject: refactor(bufCheck): Assume bufCheck is run in depot checkout 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 --- nix/bufCheck/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nix/bufCheck/default.nix b/nix/bufCheck/default.nix index 7613d9215b69..039303ba684b 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 '' -- cgit 1.4.1