c4fb0432ae
GitOrigin-RevId: 3fc1143a04da49a92c3663813c6a0c1e8ccd477f
9 lines
352 B
Nix
9 lines
352 B
Nix
# 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
|
|
''
|