File tree Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -158,7 +158,7 @@ TESTPKGS=./client TESTFLAGS="--run //worker=containerd -v" ./hack/test integrati
158
158
DOCKERFILE_RELEASES=labs TESTFLAGS=" --run /TestRunGlobalNetwork/worker=oci$/ -v" ./hack/test dockerfile
159
159
160
160
# enabling go data race detector
161
- CGO_ENABLED=1 BUILDFLAGS =" -race" ./hack/test integration
161
+ CGO_ENABLED=1 GOBUILDFLAGS =" -race" ./hack/test integration
162
162
```
163
163
164
164
Set ` TEST_KEEP_CACHE=1 ` for the test framework to keep external dependant images in a docker volume
Original file line number Diff line number Diff line change @@ -94,13 +94,13 @@ FROM buildkit-base AS buildkitd
94
94
# BUILDKITD_TAGS defines additional Go build tags for compiling buildkitd
95
95
ARG BUILDKITD_TAGS
96
96
ARG TARGETPLATFORM
97
- ARG BUILDFLAGS
97
+ ARG GOBUILDFLAGS
98
98
ARG VERIFYFLAGS="--static"
99
99
ARG CGO_ENABLED=0
100
100
RUN --mount=target=. --mount=target=/root/.cache,type=cache \
101
101
--mount=target=/go/pkg/mod,type=cache \
102
102
--mount=source=/tmp/.ldflags,target=/tmp/.ldflags,from=buildkit-version \
103
- xx-go build ${BUILDFLAGS } -ldflags "$(cat /tmp/.ldflags) -extldflags '-static'" -tags "osusergo netgo static_build seccomp ${BUILDKITD_TAGS}" -o /usr/bin/buildkitd ./cmd/buildkitd && \
103
+ xx-go build ${GOBUILDFLAGS } -ldflags "$(cat /tmp/.ldflags) -extldflags '-static'" -tags "osusergo netgo static_build seccomp ${BUILDKITD_TAGS}" -o /usr/bin/buildkitd ./cmd/buildkitd && \
104
104
xx-verify ${VERIFYFLAGS} /usr/bin/buildkitd
105
105
106
106
FROM scratch AS binaries-linux
Original file line number Diff line number Diff line change 36
36
37
37
.PHONY : test-race
38
38
test-race :
39
- CGO_ENABLED=1 BUILDFLAGS =" -race" ./hack/test integration gateway dockerfile
39
+ CGO_ENABLED=1 GOBUILDFLAGS =" -race" ./hack/test integration gateway dockerfile
40
40
41
41
.PHONY : lint
42
42
lint :
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ set -eu -o pipefail
13
13
: ${TEST_DOCKERD_BINARY=$(which dockerd)}
14
14
: ${TEST_REPORT_SUFFIX=}
15
15
: ${TEST_KEEP_CACHE=}
16
- : ${BUILDFLAGS =}
16
+ : ${GOBUILDFLAGS =}
17
17
: ${VERIFYFLAGS=}
18
18
: ${CGO_ENABLED=}
19
19
: ${DOCKERFILE_RELEASES=}
@@ -63,7 +63,7 @@ testReportsVol="-v $testReportsDir:/testreports"
63
63
gotestsumArgs=" --format=standard-verbose --jsonfile=/testreports/go-test-report$TEST_REPORT_SUFFIX .json --junitfile=/testreports/junit-report$TEST_REPORT_SUFFIX .xml"
64
64
gotestArgs=" -mod=vendor -coverprofile=/testreports/coverage-report$TEST_REPORT_SUFFIX .txt -covermode=atomic"
65
65
66
- if [[ " $BUILDFLAGS " == * " -race" * ]]; then
66
+ if [[ " $GOBUILDFLAGS " == * " -race" * ]]; then
67
67
if [ " $CGO_ENABLED " != " 1" ]; then
68
68
echo>&2 " go race detector requires CGO_ENABLED=1"
69
69
exit 1
@@ -78,7 +78,7 @@ buildxCmd build $cacheFromFlags \
78
78
--build-arg HTTP_PROXY \
79
79
--build-arg HTTPS_PROXY \
80
80
--build-arg NO_PROXY \
81
- --build-arg BUILDFLAGS \
81
+ --build-arg GOBUILDFLAGS \
82
82
--build-arg VERIFYFLAGS \
83
83
--build-arg CGO_ENABLED \
84
84
--target " integration-tests" \
You can’t perform that action at this time.
0 commit comments