2020-09-30 03:42:59 +00:00
|
|
|
# Check protobuf syntax and breaking.
|
|
|
|
#
|
|
|
|
{ depot, pkgs, ... }:
|
|
|
|
|
|
|
|
pkgs.writeShellScriptBin "ci-buf-check" ''
|
2022-05-19 14:39:52 +00:00
|
|
|
${depot.third_party.bufbuild}/bin/buf check lint --input .
|
2020-09-30 03:42:59 +00:00
|
|
|
# Report-only
|
2022-05-19 14:39:52 +00:00
|
|
|
${depot.third_party.bufbuild}/bin/buf check breaking --input "." --against-input "./.git#branch=canon" || true
|
2020-09-30 03:42:59 +00:00
|
|
|
''
|