cmd/go: use 'gcloud storage cp' instead of 'gsutil cp' In some misguided attempt at "cleanup", Google Cloud has decided to retire 'gsutil' in favor of 'gcloud storage' instead of leaving an entirely backwards-compatible wrapper so that client scripts and muscle memory keep working. In addition to breaking customers this way, they are also sending AI bots around "cleaning up" old usages with scary warnings that maybe the changes will break your entire world. This is even more misguided, of course, and resulted in us receiving CL 748661 (originally GitHub PR golang/gofrontend#13) and then me receiving a private email asking for it to be merged. It was easier to recreate the 4-line CL myself than to enumerate everything that was wrong with that CL's commit message. I hope that only Google teams are being subjected to this. This is based on the CL 748900 from the main Go repo by Russ. Change-Id: I26f2f65015567db0f792eab116ab40e31ec0c5d8 Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/749000 Reviewed-by: Russ Cox <rsc@golang.org>
diff --git a/libgo/go/cmd/go/internal/modload/query_test.go b/libgo/go/cmd/go/internal/modload/query_test.go index a3f2f84..24b5da5 100644 --- a/libgo/go/cmd/go/internal/modload/query_test.go +++ b/libgo/go/cmd/go/internal/modload/query_test.go
@@ -88,7 +88,7 @@ git commit -m 'after v2.5.5' status git checkout master zip -r ../querytest.zip - gsutil cp ../querytest.zip gs://vcs-test/git/querytest.zip + gcloud storage cp ../querytest.zip gs://vcs-test/git/querytest.zip curl 'https://vcs-test.golang.org/git/querytest?go-get=1' */ {path: queryRepo, query: "<v0.0.0", vers: "v0.0.0-pre1"},
diff --git a/libgo/go/cmd/go/testdata/script/mod_get_pseudo_other_branch.txt b/libgo/go/cmd/go/testdata/script/mod_get_pseudo_other_branch.txt index d085f4f..0646df7 100644 --- a/libgo/go/cmd/go/testdata/script/mod_get_pseudo_other_branch.txt +++ b/libgo/go/cmd/go/testdata/script/mod_get_pseudo_other_branch.txt
@@ -64,4 +64,4 @@ git merge b -m merge zip -r ../tagtests.zip . -gsutil cp ../tagtests.zip gs://vcs-test/git/tagtests.zip +gcloud storage cp ../tagtests.zip gs://vcs-test/git/tagtests.zip
diff --git a/libgo/go/cmd/go/testdata/script/mod_get_pseudo_prefix.txt b/libgo/go/cmd/go/testdata/script/mod_get_pseudo_prefix.txt index 8e6cd90..9fa5d15 100644 --- a/libgo/go/cmd/go/testdata/script/mod_get_pseudo_prefix.txt +++ b/libgo/go/cmd/go/testdata/script/mod_get_pseudo_prefix.txt
@@ -61,4 +61,4 @@ git commit -m 'after last tag' zip -r ../prefixtagtests.zip . -gsutil cp ../prefixtagtests.zip gs://vcs-test/git/prefixtagtests.zip +gcloud storage cp ../prefixtagtests.zip gs://vcs-test/git/prefixtagtests.zip
diff --git a/libgo/go/cmd/go/testdata/script/mod_retract_pseudo_base.txt b/libgo/go/cmd/go/testdata/script/mod_retract_pseudo_base.txt index 27c2b67..ca627d1 100644 --- a/libgo/go/cmd/go/testdata/script/mod_retract_pseudo_base.txt +++ b/libgo/go/cmd/go/testdata/script/mod_retract_pseudo_base.txt
@@ -59,4 +59,4 @@ git commit -m 'trivial change' zip -r ../retract-pseudo.zip . -gsutil cp ../retract-pseudo.zip gs://vcs-test/git/retract-pseudo.zip +gcloud storage cp ../retract-pseudo.zip gs://vcs-test/git/retract-pseudo.zip