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




                                          
                                                            
               
                                                                                                                
  
# Check protobuf syntax and breaking.
#
{ depot, pkgs, ... }:

pkgs.writeShellScriptBin "ci-buf-check" ''
  ${depot.third_party.bufbuild}/bin/buf check lint --input .
  # Report-only
  ${depot.third_party.bufbuild}/bin/buf check breaking --input "." --against-input "./.git#branch=canon" || true
''