File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed
pkg/plugins/golang/v2/scaffolds/internal/templates Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ COPY api/ api/
55
55
COPY controllers/ controllers/
56
56
57
57
# Build
58
- RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -o manager main.go
58
+ RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GO111MODULE=on go build -a -o manager main.go
59
59
60
60
# Use distroless as minimal base image to package the manager binary
61
61
# Refer to https://github.com/GoogleContainerTools/distroless for more details
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ COPY channels/ /channels/
19
19
RUN chmod -R a+rx /channels/
20
20
21
21
# Build
22
- RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -o manager main.go
22
+ RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GO111MODULE=on go build -a -o manager main.go
23
23
24
24
# Use distroless as minimal base image to package the manager binary
25
25
# Refer to https://github.com/GoogleContainerTools/distroless for more details
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ COPY apis/ apis/
15
15
COPY controllers/ controllers/
16
16
17
17
# Build
18
- RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -o manager main.go
18
+ RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GO111MODULE=on go build -a -o manager main.go
19
19
20
20
# Use distroless as minimal base image to package the manager binary
21
21
# Refer to https://github.com/GoogleContainerTools/distroless for more details
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ COPY api/ api/
15
15
COPY controllers/ controllers/
16
16
17
17
# Build
18
- RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -o manager main.go
18
+ RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GO111MODULE=on go build -a -o manager main.go
19
19
20
20
# Use distroless as minimal base image to package the manager binary
21
21
# Refer to https://github.com/GoogleContainerTools/distroless for more details
You can’t perform that action at this time.
0 commit comments