Fix for bug that forces all Go binaries to be based on Go 1.8 (the default)

This commit is contained in:
Andrew Newdigate 2017-12-21 11:55:07 +00:00 committed by Marin Jankovski
parent ab7d1bf72f
commit 6725e787b0
11 changed files with 40 additions and 25 deletions

View file

@ -7,17 +7,17 @@ function print_golang_args() {
case "$1" in
1.8)
GOLANG_VERSION=1.8
INSTALL_GOLANG_VERSION=1.8
GOLANG_DOWNLOAD_SHA256=253ab94104ee3923e228a2cb2116e5e462ad3ebaeea06ff04463479d7f12d27ca
;;
1.9)
GOLANG_VERSION=1.9.2
INSTALL_GOLANG_VERSION=1.9.2
GOLANG_DOWNLOAD_SHA256=de874549d9a8d8d8062be05808509c09a88a248e77ec14eb77453530829ac02b
;;
*) echo "Unknown golang version $1"; exit 1;
esac
printf -- "--build-arg GOLANG_VERSION=%s " "$GOLANG_VERSION"
printf -- "--build-arg INSTALL_GOLANG_VERSION=%s " "$INSTALL_GOLANG_VERSION"
printf -- "--build-arg GOLANG_DOWNLOAD_SHA256=%s " "$GOLANG_DOWNLOAD_SHA256"
}