54f72afcda
Last one of the year! С наступающим) Fixes: * users/wpcarro: remove use-package from emacs packages (it has been built-in for a while now) * users/sterni: the same thing * users/aspen: remove `coz`, forwardport `gdmap` from stable * users/flokli: dropped corneish_zen firmware from CI This firmware depends on a non-reproducible FOD which, when updated, causes build failures. We have worked around this repeatedly, but it needs to be fixed properly. * tvix: regenerate Go protobufs * tvix: address new clippy lints * tvix/{castore,store,build}-go: update grpc/protobuf libraries * tvix/eval: formatting fixes * 3p/overlays/tvl: work around GCC 14 -Werrors Change-Id: Ice5948ca7780192fb7d2abc6a48971fb875f03c9 Reviewed-on: https://cl.tvl.fyi/c/depot/+/12933 Reviewed-by: tazjin <tazjin@tvl.su> Reviewed-by: sterni <sternenseemann@systemli.org> Reviewed-by: aspen <root@gws.fyi> Autosubmit: tazjin <tazjin@tvl.su> Tested-by: BuildkiteCI
31 lines
1 KiB
Nix
31 lines
1 KiB
Nix
{ depot, pkgs, ... }:
|
|
|
|
let
|
|
regenerate = pkgs.writeShellScript "regenerate" ''
|
|
(cd $(git rev-parse --show-toplevel)/tvix/build-go && rm *.pb.go && cp ${depot.tvix.build.protos.go-bindings}/*.pb.go . && chmod +w *.pb.go)
|
|
'';
|
|
in
|
|
(pkgs.buildGoModule {
|
|
name = "build-go";
|
|
src = depot.third_party.gitignoreSource ./.;
|
|
vendorHash = "sha256:1j652an8ir1ybyj21znaipsir7mbs3v972mw27ppsjz9dgh2crx6";
|
|
}).overrideAttrs (_: {
|
|
meta.ci.extraSteps = {
|
|
check = {
|
|
label = ":water_buffalo: ensure generated protobuf files match";
|
|
needsOutput = true;
|
|
command = pkgs.writeShellScript "pb-go-check" ''
|
|
${regenerate}
|
|
if [[ -n "$(git status --porcelain -unormal)" ]]; then
|
|
echo "-----------------------------"
|
|
echo ".pb.go files need to be updated, mg run //tvix/build-go/regenerate"
|
|
echo "-----------------------------"
|
|
git status -unormal
|
|
exit 1
|
|
fi
|
|
'';
|
|
alwaysRun = true;
|
|
};
|
|
};
|
|
passthru.regenerate = regenerate;
|
|
})
|