Install tools depedencies using go list

This commit is contained in:
andig 2021-10-13 19:10:35 +02:00
parent 3d1953d9b8
commit 6f3f0f75b6
4 changed files with 4 additions and 2 deletions

View file

@ -31,6 +31,7 @@ WORKDIR /build
COPY Makefile .
COPY go.mod .
COPY go.sum .
COPY tools.go .
RUN make install
RUN go mod download

View file

@ -30,8 +30,7 @@ clean:
rm -rf dist/
install:
go install github.com/golang/mock/mockgen
go install github.com/alvaroloes/enumer
go install $$(go list -f '{{join .Imports " "}}' tools.go)
install-ui:
npm ci

View file

@ -12,6 +12,7 @@ RUN apk update && apk add --no-cache git ca-certificates tzdata alpine-sdk && up
COPY Makefile .
COPY go.mod .
COPY go.sum .
COPY tools.go .
RUN make install
RUN go mod download

View file

@ -31,6 +31,7 @@ WORKDIR /build
COPY Makefile .
COPY go.mod .
COPY go.sum .
COPY tools.go .
RUN make install
RUN go mod download