build: use local core sdk across modules

This commit is contained in:
2026-08-11 15:53:20 +08:00
parent e0d7827da2
commit bf2d77e302
40 changed files with 99 additions and 43 deletions

View File

@@ -42,16 +42,13 @@ for module_dir in "${modules[@]}"; do
go get -u ./...
fi
go mod tidy
# Keep the current parent module in every go.mod. This prevents older
# transitive gRPC requirements from selecting the pre-split 2019 module
# when a workspace module is built on its own.
go get google.golang.org/genproto@latest
)
done
echo
echo "==> Pinning the current genproto parent module for workspace compatibility"
(
cd -- "${modules[0]}"
go get google.golang.org/genproto@latest
)
echo
echo "==> Synchronizing go.work"
go work sync