2023-10-17 14:49:03 +02:00
|
|
|
# Check protobuf breaking. Lints already happen in individual targets.
|
2020-07-17 06:27:05 +02:00
|
|
|
#
|
|
|
|
{ depot, pkgs, ... }:
|
|
|
|
|
|
|
|
pkgs.writeShellScriptBin "ci-buf-check" ''
|
2023-10-17 14:49:03 +02:00
|
|
|
export PATH="$PATH:${pkgs.lib.makeBinPath [ pkgs.buf ]}"
|
2020-07-17 06:27:05 +02:00
|
|
|
# Report-only
|
2022-11-19 22:24:42 +01:00
|
|
|
(cd $(git rev-parse --show-toplevel) && (buf breaking . --against "./.git#ref=HEAD~1" || true))
|
2020-07-17 06:27:05 +02:00
|
|
|
''
|