Skip to content

Commit ca5d5bf

Browse files
authored
Merge pull request moby#4017 from crazy-max/test-set-goversion
hack: allow to set GO_VERSION during tests
2 parents 0eafef8 + 3e58e1c commit ca5d5bf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

hack/test

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
. $(dirname $0)/util
44
set -eu -o pipefail
55

6+
: ${GO_VERSION=}
67
: ${HTTP_PROXY=}
78
: ${HTTPS_PROXY=}
89
: ${NO_PROXY=}
@@ -74,6 +75,7 @@ if [[ "$GOBUILDFLAGS" == *"-race"* ]]; then
7475
fi
7576

7677
buildxCmd build $cacheFromFlags \
78+
--build-arg GO_VERSION \
7779
--build-arg BUILDKITD_TAGS \
7880
--build-arg HTTP_PROXY \
7981
--build-arg HTTPS_PROXY \

0 commit comments

Comments
 (0)