Skip to content

Commit 6ce57bb

Browse files
committed
Add golines and gofumpt as formatting tools
1 parent 20971eb commit 6ce57bb

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Dockerfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,13 @@ RUN dotnet publish --framework net9.0 -o output \
5252

5353
# build goimports
5454
FROM docker.io/golang:1.24-alpine AS goimports-builder
55+
5556
RUN go install golang.org/x/tools/cmd/goimports@latest
57+
58+
RUN go install github.com/segmentio/[email protected]
59+
60+
RUN go install mvdan.cc/[email protected]
61+
5662
# will copy /usr/local/go into release image later, trims about 170mb
5763
RUN rm -rf /usr/local/go/*.md && \
5864
rm -rf /usr/local/go/api && \
@@ -104,6 +110,8 @@ COPY --from=rubyfmt-downloader /tmp/releases/v0.11.67-0-Linux/rubyfmt /usr/bin/r
104110
# Go
105111
COPY --from=goimports-builder /usr/local/go/ /usr/local/go/
106112
COPY --from=goimports-builder /go/bin/goimports /usr/bin
113+
COPY --from=goimports-builder /go/bin/golines /usr/bin
114+
COPY --from=goimports-builder /go/bin/gofumpt /usr/bin
107115

108116
# C#
109117
COPY --from=csharpier-builder /app/output/CSharpier /usr/bin/csharpier

0 commit comments

Comments
 (0)