Remove unnecessary goimports install from lint stage
All checks were successful
Check / check (pull_request) Successful in 1m27s
All checks were successful
Check / check (pull_request) Successful in 1m27s
The lint stage only needs golangci-lint (built into base image) and gofmt for fmt-check. Neither make fmt-check nor make lint uses the goimports binary directly. Removing it makes the lint stage faster, which is the whole point of the multi-stage split. goimports is only used by 'make fmt' which is a local developer tool, not run during Docker builds.
This commit is contained in:
@@ -2,8 +2,6 @@
|
|||||||
# golangci/golangci-lint:v2.10.1
|
# golangci/golangci-lint:v2.10.1
|
||||||
FROM golangci/golangci-lint@sha256:ea84d14c2fef724411be7dc45e09e6ef721d748315252b02df19a7e3113ee763 AS lint
|
FROM golangci/golangci-lint@sha256:ea84d14c2fef724411be7dc45e09e6ef721d748315252b02df19a7e3113ee763 AS lint
|
||||||
|
|
||||||
RUN go install golang.org/x/tools/cmd/goimports@009367f5c17a8d4c45a961a3a509277190a9a6f0 # v0.42.0
|
|
||||||
|
|
||||||
WORKDIR /src
|
WORKDIR /src
|
||||||
COPY go.mod go.sum ./
|
COPY go.mod go.sum ./
|
||||||
RUN go mod download
|
RUN go mod download
|
||||||
|
|||||||
Reference in New Issue
Block a user