Similar to the castore-go CL before, this also updates the store-go bindings to the new layout. Change-Id: Id73d7ad43f7d70171ab021728e303300c5db71f0 Reviewed-on: https://cl.tvl.fyi/c/depot/+/9788 Tested-by: BuildkiteCI Reviewed-by: Connor Brewster <cbrewster@hey.com>
25 lines
790 B
Nix
25 lines
790 B
Nix
{ depot, pkgs, ... }:
|
|
|
|
(pkgs.buildGoModule {
|
|
name = "store-go";
|
|
src = depot.third_party.gitignoreSource ./.;
|
|
vendorHash = "sha256-WAYaIT3h3Cdvo1RB8T7DuoxeKvXfkq8vo/vdkhJQDs0=";
|
|
}).overrideAttrs (_: {
|
|
meta.ci.extraSteps = {
|
|
check = {
|
|
label = ":water_buffalo: ensure generated protobuf files match";
|
|
needsOutput = true;
|
|
command = pkgs.writeShellScript "pb-go-check" ''
|
|
${depot.tvix.store-go-generate}
|
|
if [[ -n "$(git status --porcelain -unormal)" ]]; then
|
|
echo "-----------------------------"
|
|
echo ".pb.go files need to be updated, run //tvix:store-go-generate"
|
|
echo "-----------------------------"
|
|
git status -unormal
|
|
exit 1
|
|
fi
|
|
'';
|
|
alwaysRun = true;
|
|
};
|
|
};
|
|
})
|