Remove unnecessary goimports install from lint stage
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:
clawbot
2026-03-01 11:30:59 -08:00
parent 2c4c1beaf9
commit d661c81955

View File

@@ -2,8 +2,6 @@
# golangci/golangci-lint:v2.10.1
FROM golangci/golangci-lint@sha256:ea84d14c2fef724411be7dc45e09e6ef721d748315252b02df19a7e3113ee763 AS lint
RUN go install golang.org/x/tools/cmd/goimports@009367f5c17a8d4c45a961a3a509277190a9a6f0 # v0.42.0
WORKDIR /src
COPY go.mod go.sum ./
RUN go mod download