Skip to content

Commit ea9b76d

Browse files
authored
Prepend 'https://proxy.golang.org' to GOPROXY in Dockerfile for building controller image. (#173)
Description of changes: * Prepend 'https://proxy.golang.org' to GOPROXY in Dockerfile for building controller image. * This GoPROXY helps fix the building of controller image during e2e tests. Tested by locally running `make kind-test` By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent d1d34fc commit ea9b76d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ ARG build_date
1313
ARG work_dir=/github.com/aws-controllers-k8s/$service_alias-controller
1414
WORKDIR $work_dir
1515
# For building Go Module required
16-
ENV GOPROXY=direct
16+
# TODO(vijtrip2): After golang update to 1.15 or later, replace ',' with '|'
17+
ENV GOPROXY=https://proxy.golang.org,direct
1718
ENV GO111MODULE=on
1819
ENV GOARCH=amd64
1920
ENV GOOS=linux

0 commit comments

Comments
 (0)