f520bd40ca
Instead of having two ways of accessing the path to the depot (one of which was stuttering, depot.depotPath) we settle on only one: depot.path. This was mostly used for NixOS module imports. Co-Authored-By: Florian Klink <flokli@flokli.de> Change-Id: I2c0db23383fc34f6ca76baaad4cc4af2d9dfae15 Reviewed-on: https://cl.tvl.fyi/c/depot/+/2962 Tested-by: BuildkiteCI Reviewed-by: grfn <grfn@gws.fyi> Reviewed-by: sterni <sternenseemann@systemli.org>
9 lines
337 B
Nix
9 lines
337 B
Nix
# 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
|
|
''
|