about summary refs log blame commit diff
path: root/nix/bufCheck/default.nix
blob: d0f07d996b733b12e883d183d44023bf5f0f4002 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                                      



                                          
                                                          
               
                                                                                                 
  
# Check protobuf breaking. Lints already happen in individual targets.
#
{ depot, pkgs, ... }:

pkgs.writeShellScriptBin "ci-buf-check" ''
  export PATH="$PATH:${pkgs.lib.makeBinPath [ pkgs.buf ]}"
  # Report-only
  (cd $(git rev-parse --show-toplevel) && (buf breaking . --against "./.git#ref=HEAD~1" || true))
''