Skip to content

Commit

Permalink
chore: apply GOTOOLCHAIN change to all commands in run block (#10972)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
codyoss authored Oct 9, 2024
1 parent b520042 commit d020765
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions internal/postprocessor/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@ WORKDIR /postprocessor
RUN CGO_ENABLED=0 GOOS=linux go build -v -o post_processor

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

CMD [ "/postprocessor/post_processor"]

0 comments on commit d020765

Please # to comment.