8000 Update gcloud to 576.0.0 by gominimal-pkgmgr-mgr[bot] · Pull Request #434 · gominimal/pkgs · GitHub
[go: up one dir, main page]

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions packages/gcloud/build.ncl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ let python = import "../python/build.ncl" in
let glibc = import "../glibc/build.ncl" in
let sqlite = import "../sqlite/build.ncl" in

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

let { amd64_sha256, arm64_sha256 } = {
amd64_sha256 = "ee39a260f5d30486c654be018b0e99f396a9c061617d206becaca4456e84ff94",
arm64_sha256 = "0b31153517665f12a664675b48571938f0beeec46450485e966a4dce7b125cf6",
amd64_sha256 = "7094a08e8fc3772cdbfb1a8a1920300f52fec5e370c9f9c803c2a3c8824a32c2",
arm64_sha256 = "be6077ade7b08312a250b49b5838473253c52e25358c63cfb2cfb4095503b5f2",
}
in

Expand Down
15 changes: 15 additions & 0 deletions packages/gcloud/build.sh
< 7EF1 input type="hidden" name="path" value="packages/gcloud/build.sh" data-targets="deferred-diff-lines.inputs" autocomplete="off" />
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,21 @@ esac

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

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

mkdir -p $OUTPUT_DIR/usr/{bin,lib}
mv google-cloud-sdk $OUTPUT_DIR/usr/lib/google-cloud-sdk

Expand Down
0