File tree Expand file tree Collapse file tree 3 files changed +9
-8
lines changed
internal/test/compilecheck Expand file tree Collapse file tree 3 files changed +9
-8
lines changed Original file line number Diff line number Diff line change 2828
2929 build-tests : go test -short ${BUILD_TAGS} -run ^$$ ./...
3030
31- build-compile-check : bash etc/compile_check .sh
31+ build-compile-check : bash etc/compile_check_other .sh
3232
3333 build-compile-check-all : bash etc/run-compile-check-test.sh
3434
Original file line number Diff line number Diff line change 22set -e # exit when any command fails
33set -x # show all commands being run
44
5- GC=go
5+ : ${GO_VERSION:= " 1.18" } # Default to 1.18 if GO_VERSION is unset or empty
6+ : ${GC:= go$GO_VERSION } # Use existing GC or default to "go$GO_VERSION"
7+
68COMPILE_CHECK_DIR=" internal/cmd/compilecheck"
79ARCHITECTURES=(" 386" " arm" " arm64" " ppc64le" " s390x" )
810BUILD_CMD=" ${GC} build -buildvcs=false"
911
10- # Compilation modules are not part of the workspace as testcontainers requires
11- # a version of klauspost/compress not supported by the Go Driver / other modules
12- # in the workspace.
13- export GOWORK=off
14-
1512# compile_check will attempt to build the internal/test/compilecheck project
1613# using the provided Go version. This is to simulate an end-to-end use case.
1714function compile_check {
Original file line number Diff line number Diff line change @@ -49,7 +49,11 @@ func TestCompileCheck(t *testing.T) {
4949 },
5050 WorkingDir : "/workspace" ,
5151 Env : map [string ]string {
52- "GO_VERSION" : version ,
52+ "GC" : "go" ,
53+ // Compilation modules are not part of the workspace as testcontainers requires
54+ // a version of klauspost/compress not supported by the Go Driver / other modules
55+ // in the workspace.
56+ "GOWORK" : "off" ,
5357 },
5458 }
5559
You can’t perform that action at this time.
0 commit comments