mirror of
https://github.com/super-linter/super-linter.git
synced 2024-11-29 01:21:05 -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 #
|
# Install shfmt #
|
||||||
#################
|
#################
|
||||||
ENV GO111MODULE=on
|
ENV GO111MODULE=on \
|
||||||
|
GOROOT=/usr/lib/go \
|
||||||
|
GOPATH=/go
|
||||||
|
|
||||||
ENV GOROOT=/usr/lib/go \
|
ENV PATH="$PATH":"$GOROOT"/bin:"$GOPATH"/bin
|
||||||
GOPATH=/go \
|
|
||||||
PATH="$PATH":"$GOROOT"/bin \
|
|
||||||
PATH="$PATH":"$GOPATH"/bin
|
|
||||||
|
|
||||||
RUN mkdir -p ${GOPATH}/src ${GOPATH}/bin
|
RUN mkdir -p ${GOPATH}/src ${GOPATH}/bin
|
||||||
RUN go get mvdan.cc/sh/v3/cmd/shfmt
|
RUN go get mvdan.cc/sh/v3/cmd/shfmt
|
||||||
|
|
Loading…
Reference in a new issue