From d661c81955c868619215eb4c6ef6d01b629ca898 Mon Sep 17 00:00:00 2001 From: clawbot Date: Sun, 1 Mar 2026 11:30:59 -0800 Subject: [PATCH] Remove unnecessary goimports install from lint stage 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. --- Dockerfile | 2 -- 1 file changed, 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2bc4b07..0b1f175 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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