mirror of
https://github.com/super-linter/super-linter.git
synced 2024-12-22 07:12:11 -05:00
Fix adding Go bins to PATH
This commit is contained in:
parent
59154d8dff
commit
61fcd7f44f
1 changed files with 4 additions and 5 deletions
|
@ -284,12 +284,11 @@ RUN cd ~ && touch .chktexrc
|
|||
#################
|
||||
# Install shfmt #
|
||||
#################
|
||||
ENV GO111MODULE=on
|
||||
ENV GO111MODULE=on \
|
||||
GOROOT=/usr/lib/go \
|
||||
GOPATH=/go
|
||||
|
||||
ENV GOROOT=/usr/lib/go \
|
||||
GOPATH=/go \
|
||||
PATH="$PATH":"$GOROOT"/bin \
|
||||
PATH="$PATH":"$GOPATH"/bin
|
||||
ENV PATH="$PATH":"$GOROOT"/bin:"$GOPATH"/bin
|
||||
|
||||
RUN mkdir -p ${GOPATH}/src ${GOPATH}/bin
|
||||
RUN go get mvdan.cc/sh/v3/cmd/shfmt
|
||||
|
|
Loading…
Reference in a new issue