]> Cypherpunks repositories - gostls13.git/commitdiff
[dev.boringcrypto] misc/boring: use go install cmd@latest for installing command
authorCherry Mui <cherryyz@google.com>
Fri, 11 Feb 2022 19:31:30 +0000 (19:31 +0000)
committerCherry Mui <cherryyz@google.com>
Fri, 11 Feb 2022 20:05:16 +0000 (20:05 +0000)
"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>

misc/boring/build.release

index 46922c913fcb84169468f466f97a6757237ba149..f421b12206829875ddb9f270b23d12f3624ccfc8 100755 (executable)
@@ -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() {