2020-07-17 06:27:05 +02:00
|
|
|
# Check protobuf syntax and breaking.
|
|
|
|
#
|
|
|
|
{ depot, pkgs, ... }:
|
|
|
|
|
|
|
|
pkgs.writeShellScriptBin "ci-buf-check" ''
|
2021-04-12 22:26:55 +02:00
|
|
|
${depot.third_party.bufbuild}/bin/buf check lint --input "${depot.path}"
|
2020-07-17 06:27:05 +02:00
|
|
|
# Report-only
|
2021-04-12 22:26:55 +02:00
|
|
|
${depot.third_party.bufbuild}/bin/buf check breaking --input "${depot.path}" --against-input "${depot.path}/.git#branch=canon" || true
|
2020-07-17 06:27:05 +02:00
|
|
|
''
|