bazel: download pseudo-version tool instead of "go build" (#1629)

Required for bootstrapping bazel stamping since we cannot use "bazel build" during the workspace_status command.
Adds a small script that builds the pseudo-version tool in bazel (without stamping) and uploads it to the mirror.
On the first bazel build with stamping, the pseudo-version tool is downloaded.
This commit is contained in:
Malte Poll 2023-04-12 17:41:13 +02:00 committed by GitHub
parent 1ae39703d1
commit eb11e9ac8a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 153 additions and 2 deletions

View file

@ -461,6 +461,7 @@ multirun(
":govulncheck",
":deps_mirror_check",
":proto_targets_check",
"//hack/pseudo-version:pseudo_version_tool_freshness",
] + select({
"@io_bazel_rules_go//go/platform:darwin_arm64": [
":shellcheck_noop_warning",