Skip to content

Commit d020765

Browse files
authored
chore: apply GOTOOLCHAIN change to all commands in run block (#10972)
As written before the auto toolchain was only provided to the first command being run. Now it is applied to all commands in the scoped sub-shell -- denoted by the parens.
1 parent b520042 commit d020765

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

internal/postprocessor/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,10 @@ WORKDIR /postprocessor
2222
RUN CGO_ENABLED=0 GOOS=linux go build -v -o post_processor
2323

2424
# Install tools used in build
25-
RUN GOTOOLCHAIN='auto' go install honnef.co/go/tools/cmd/staticcheck@latest && \
25+
RUN (export=GOTOOLCHAIN='auto' && \
26+
go install honnef.co/go/tools/cmd/staticcheck@latest && \
2627
go install github.com/jstemmer/go-junit-report@latest && \
2728
go install golang.org/x/lint/golint@latest && \
28-
go install golang.org/x/tools/cmd/goimports@latest
29+
go install golang.org/x/tools/cmd/goimports@latest)
2930

3031
CMD [ "/postprocessor/post_processor"]

0 commit comments

Comments
 (0)