about summary refs log tree commit diff
path: root/nix/bufCheck/default.nix
blob: 7613d9215b69f2e04752cdb0ff52c67fcac44254 (plain) (blame)
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 "${depot.path}"
  # Report-only
  ${depot.third_party.bufbuild}/bin/buf check breaking --input "${depot.path}" --against-input "${depot.path}/.git#branch=canon" || true
''