Skip to content

Commit ff819f7

Browse files
aeneasrclaude
andcommitted
fix: add tools.go for goimports dependency and update Dockerfile to Go 1.26
- Add tools.go with //go:build tools tag to keep golang.org/x/telemetry in go.sum (prevents go mod tidy from pruning goimports's dependencies) - Update Dockerfile-build from golang:1.24 to golang:1.26 to match the go directive in go.mod Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 1f19b3f commit ff819f7

4 files changed

Lines changed: 12 additions & 2 deletions

File tree

.docker/Dockerfile-build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.24-alpine3.22 AS builder
1+
FROM golang:1.26-alpine3.22 AS builder
22

33
RUN apk -U --no-cache add build-base git gcc bash
44

go.mod

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ require (
4444
github.com/urfave/negroni v1.0.0
4545
golang.org/x/oauth2 v0.35.0
4646
golang.org/x/text v0.31.0
47+
golang.org/x/tools v0.38.0
4748
gopkg.in/yaml.v2 v2.4.0
4849
)
4950

@@ -293,7 +294,7 @@ require (
293294
golang.org/x/net v0.47.0 // indirect
294295
golang.org/x/sync v0.18.0 // indirect
295296
golang.org/x/sys v0.40.0 // indirect
296-
golang.org/x/tools v0.38.0 // indirect
297+
golang.org/x/telemetry v0.0.0-20251008203120-078029d740a8 // indirect
297298
google.golang.org/genproto/googleapis/api v0.0.0-20251007200510-49b9836ed3ff // indirect
298299
google.golang.org/genproto/googleapis/rpc v0.0.0-20251007200510-49b9836ed3ff // indirect
299300
google.golang.org/grpc v1.75.0 // indirect

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -968,6 +968,8 @@ golang.org/x/sys v0.17.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
968968
golang.org/x/sys v0.18.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
969969
golang.org/x/sys v0.40.0 h1:DBZZqJ2Rkml6QMQsZywtnjnnGvHza6BTfYFWY9kjEWQ=
970970
golang.org/x/sys v0.40.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks=
971+
golang.org/x/telemetry v0.0.0-20251008203120-078029d740a8 h1:LvzTn0GQhWuvKH/kVRS3R3bVAsdQWI7hvfLHGgh9+lU=
972+
golang.org/x/telemetry v0.0.0-20251008203120-078029d740a8/go.mod h1:Pi4ztBfryZoJEkyFTI5/Ocsu2jXyDr6iSdgJiYE/uwE=
971973
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
972974
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
973975
golang.org/x/term v0.2.0/go.mod h1:TVmDHMZPmdnySmBfhjOoOdhjzdE1h4u1VwSiw2l1Nuc=

tools.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
//go:build tools
2+
3+
package main
4+
5+
import (
6+
_ "golang.org/x/tools/cmd/goimports"
7+
)

0 commit comments

Comments
 (0)