Fix adding Go bins to PATH

This commit is contained in:
Marco Ferrari 2020-08-31 18:07:01 +02:00
parent 59154d8dff
commit 61fcd7f44f

View file

@ -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