diff options
Diffstat (limited to 'nix/bufCheck')
-rw-r--r-- | nix/bufCheck/default.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nix/bufCheck/default.nix b/nix/bufCheck/default.nix index 97b4124d4569..f247e6839eee 100644 --- a/nix/bufCheck/default.nix +++ b/nix/bufCheck/default.nix @@ -4,10 +4,10 @@ pkgs.writeShellScriptBin "ci-buf-check" '' export PATH="$PATH:${pkgs.lib.makeBinPath [ pkgs.buf pkgs.protoc-gen-go pkgs.protoc-gen-go-grpc ]}" - buf lint . + (cd $(git rev-parse --show-toplevel) && buf lint .) # Run buf generate, and bail out if generated files are changed. - buf generate --path tvix/store/protos + (cd $(git rev-parse --show-toplevel) && buf generate --path tvix/store/protos) # Check if any files have changed if [[ -n "$(git status --porcelain -unormal)" ]]; then echo "-----------------------------" @@ -18,5 +18,5 @@ pkgs.writeShellScriptBin "ci-buf-check" '' fi # Report-only - buf breaking . --against "./.git#ref=HEAD~1" || true + (cd $(git rev-parse --show-toplevel) && (buf breaking . --against "./.git#ref=HEAD~1" || true)) '' |