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