Skip to content

Commit 75886d0

Browse files
gominimal-pkgmgr-mgr[bot]bryan-minimalclaude
authored
Update gcloud to 576.0.0 (#434)
* Update gcloud to 576.0.0 * gcloud: assert the bundle LICENSE is still Apache at build time (inbox#284) Resolves the #284 gcloud verify item: the bundle's own LICENSE declares Apache-2.0 for the CLI and its source; the ToS language in it governs use of GCP services, not redistribution of the CLI - so public-cache redistribution is fine. Tom's suggestion: guard that conclusion at build time - if Google ever ships the bundle under different terms, the build fails loudly and the redistribution question gets re-audited rather than silently shipping. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> (cherry picked from commit 720de05) * gcloud: fix LICENSE assert (match Apache-2.0 URL, not the wrapped phrase) The bundle LICENSE wraps "...licensed under Apache\nLicense v. 2.0", so `grep "Apache License"` never matched and the assert failed on a genuinely Apache-licensed bundle. Match the canonical single-line Apache-2.0 URL instead. Build-verified: gcloud builds green with the assert passing. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> --------- Co-authored-by: gominimal-pkgmgr-mgr[bot] <285843623+gominimal-pkgmgr-mgr[bot]@users.noreply.github.com> Co-authored-by: bryan <bryan@minimal.dev> Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
1 parent b1a1fc2 commit 75886d0

2 files changed

Lines changed: 18 additions & 3 deletions

File tree

packages/gcloud/build.ncl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ let python = import "../python/build.ncl" in
55
let glibc = import "../glibc/build.ncl" in
66
let sqlite = import "../sqlite/build.ncl" in
77

8-
let version = "568.0.0" in
8+
let version = "576.0.0" in
99
# Google's per-version GCS bucket; explicit per-version path. The
1010
# previous rapid-channel URL
1111
# (dl.google.com/dl/cloudsdk/channels/rapid/downloads) has the
@@ -16,8 +16,8 @@ let version = "568.0.0" in
1616
let dl_base = "https://storage.googleapis.com/cloud-sdk-release" in
1717

1818
let { amd64_sha256, arm64_sha256 } = {
19-
amd64_sha256 = "ee39a260f5d30486c654be018b0e99f396a9c061617d206becaca4456e84ff94",
20-
arm64_sha256 = "0b31153517665f12a664675b48571938f0beeec46450485e966a4dce7b125cf6",
19+
amd64_sha256 = "7094a08e8fc3772cdbfb1a8a1920300f52fec5e370c9f9c803c2a3c8824a32c2",
20+
arm64_sha256 = "be6077ade7b08312a250b49b5838473253c52e25358c63cfb2cfb4095503b5f2",
2121
}
2222
in
2323

packages/gcloud/build.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,21 @@ esac
99

1010
tar -xof "google-cloud-cli-${MINIMAL_ARG_VERSION}-linux-${PLATFORM}.tar.gz"
1111

12+
# Redistribution guard (gominimal/inbox#284): serving this bundle from the
13+
# public cache is fine because the bundle's own LICENSE is Apache-2.0 — its
14+
# ToS clauses govern *use of GCP services*, not redistribution of the CLI.
15+
# If Google ever changes the bundle license, fail loudly so the
16+
# redistribution question gets re-audited instead of silently shipping.
17+
# Match the Apache-2.0 URL, NOT the phrase "Apache License": the bundle's LICENSE
18+
# wraps it as "...licensed under Apache\nLicense v. 2.0", so a single-line grep for
19+
# "Apache License" never matches (that was the assert's original bug — it failed
20+
# on a genuinely Apache-licensed bundle). The URL sits on one line and is the
21+
# canonical Apache-2.0 marker.
22+
grep -q "apache.org/licenses/LICENSE-2.0" google-cloud-sdk/LICENSE || {
23+
echo "gcloud bundle LICENSE no longer points at the Apache-2.0 license — re-audit redistribution (gominimal/inbox#284)" >&2
24+
exit 1
25+
}
26+
1227
mkdir -p $OUTPUT_DIR/usr/{bin,lib}
1328
mv google-cloud-sdk $OUTPUT_DIR/usr/lib/google-cloud-sdk
1429

0 commit comments

Comments
 (0)