aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCherry Mui <cherryyz@google.com>2022-02-11 19:31:30 +0000
committerCherry Mui <cherryyz@google.com>2022-02-14 21:33:49 +0000
commit6666adc18c24667f4b431b8f3492bb7aa96ef71e (patch)
tree772d3e5417fe34f4f8eed243cd5f7066528bbdb9
parent172559d22b5d9fe2dfbe9d4bf16ca0cb8f76c541 (diff)
downloadgo-6666adc18c24667f4b431b8f3492bb7aa96ef71e.tar.gz
go-6666adc18c24667f4b431b8f3492bb7aa96ef71e.zip
[dev.boringcrypto.go1.17] misc/boring: use go install cmd@latest for installing command
"go get cmd" is deprecated. Change-Id: I2242764c79b5e4c3ff94e5323d6504b596bdc9e2 Reviewed-on: https://go-review.googlesource.com/c/go/+/385197 Trust: Cherry Mui <cherryyz@google.com> Reviewed-by: Heschi Kreinick <heschi@google.com> Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org> Run-TryBot: Cherry Mui <cherryyz@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> (cherry picked from commit 8521d1ea346212bcdabe15b4e157b3a2f2ca95f4) Reviewed-on: https://go-review.googlesource.com/c/go/+/385234
-rwxr-xr-xmisc/boring/build.release4
1 files changed, 1 insertions, 3 deletions
diff --git a/misc/boring/build.release b/misc/boring/build.release
index 46922c913f..f421b12206 100755
--- a/misc/boring/build.release
+++ b/misc/boring/build.release
@@ -59,9 +59,7 @@ echo >&2
# Build the release tool in a temporary directory.
dir=$(mktemp -d)
trap "rm -rf $dir" EXIT
-export GO111MODULE=on
-export GOBIN="$dir"
-(cd "$dir"; go get golang.org/x/build/cmd/release)
+GOBIN="$dir" go install golang.org/x/build/cmd/release@latest
# Build the release.
sha() {