Skip to content

Commit 99611e2

Browse files
feat(go.mod): upgrade to go 1.24.0 minimum version
1 parent e3f2ee7 commit 99611e2

File tree

4 files changed

+19
-28
lines changed

4 files changed

+19
-28
lines changed

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ mod-download: ## Downloads the Go module.
3737

3838
dev-dependencies: ## Downloads the necessary dev dependencies.
3939
@echo "==> Downloading development dependencies"
40-
@$(GO) install honnef.co/go/tools/cmd/[email protected].0
41-
@$(GO) install golang.org/x/tools/cmd/[email protected]
40+
@$(GO) get -tool honnef.co/go/tools/cmd/[email protected].1
41+
@$(GO) get -tool golang.org/x/tools/cmd/[email protected]
4242
@if [[ "$$(uname)" == 'Darwin' ]]; then brew install semgrep; fi
4343
.PHONY: dev-dependencies
4444

@@ -49,12 +49,12 @@ tidy: ## Cleans the Go module.
4949

5050
fmt: ## Properly formats Go files and orders dependencies.
5151
@echo "==> Running gofmt"
52-
@gofmt -s -w fastly internal tools
52+
@gofmt -s -w fastly internal
5353
.PHONY: fmt
5454

5555
fiximports: ## Properly formats and orders imports.
5656
@echo "==> Fixing imports"
57-
@goimports -w fastly internal tools
57+
@goimports -w fastly internal
5858
.PHONY: fiximports
5959

6060
test: ## Runs the test suite with VCR mocks enabled.

go.mod

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
module github.com/fastly/go-fastly/v10
22

3+
go 1.24.0
4+
5+
toolchain go1.24.2
6+
37
require (
48
github.com/dnaeon/go-vcr v1.2.0
59
github.com/google/go-cmp v0.7.0
@@ -10,22 +14,23 @@ require (
1014
github.com/peterhellberg/link v1.2.0
1115
github.com/stretchr/testify v1.10.0
1216
golang.org/x/crypto v0.37.0
13-
golang.org/x/tools v0.32.0
14-
honnef.co/go/tools v0.6.1
1517
)
1618

1719
require (
1820
github.com/BurntSushi/toml v1.5.0 // indirect
1921
github.com/davecgh/go-spew v1.1.1 // indirect
2022
github.com/pmezard/go-difflib v1.0.0 // indirect
21-
golang.org/x/exp/typeparams v0.0.0-20250106191152-7588d65b2ba8 // indirect
23+
golang.org/x/exp/typeparams v0.0.0-20250408133849-7e4ce0ab07d0 // indirect
2224
golang.org/x/mod v0.24.0 // indirect
2325
golang.org/x/sync v0.13.0 // indirect
2426
golang.org/x/sys v0.32.0 // indirect
27+
golang.org/x/tools v0.30.0 // indirect
2528
gopkg.in/yaml.v2 v2.4.0 // indirect
2629
gopkg.in/yaml.v3 v3.0.1 // indirect
30+
honnef.co/go/tools v0.6.1 // indirect
2731
)
2832

29-
go 1.23.0
30-
31-
toolchain go1.23.7
33+
tool (
34+
golang.org/x/tools/cmd/goimports
35+
honnef.co/go/tools/cmd/staticcheck
36+
)

go.sum

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,16 @@ github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOf
2424
github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
2525
golang.org/x/crypto v0.37.0 h1:kJNSjF/Xp7kU0iB2Z+9viTPMW4EqqsrywMXLJOOsXSE=
2626
golang.org/x/crypto v0.37.0/go.mod h1:vg+k43peMZ0pUMhYmVAWysMK35e6ioLh3wB8ZCAfbVc=
27-
golang.org/x/exp/typeparams v0.0.0-20250106191152-7588d65b2ba8 h1:EN2027N+i+Tda4MiYFv7Mb0WAxf/gfHdpF2QAtplC9s=
28-
golang.org/x/exp/typeparams v0.0.0-20250106191152-7588d65b2ba8/go.mod h1:AbB0pIl9nAr9wVwH+Z2ZpaocVmF5I4GyWCDIsVjR0bk=
27+
golang.org/x/exp/typeparams v0.0.0-20250408133849-7e4ce0ab07d0 h1:oMe07YcizemJ09rs2kRkFYAp0pt4e1lYLwPWiEGMpXE=
28+
golang.org/x/exp/typeparams v0.0.0-20250408133849-7e4ce0ab07d0/go.mod h1:LKZHyeOpPuZcMgxeHjJp4p5yvxrCX1xDvH10zYHhjjQ=
2929
golang.org/x/mod v0.24.0 h1:ZfthKaKaT4NrhGVZHO1/WDTwGES4De8KtWO0SIbNJMU=
3030
golang.org/x/mod v0.24.0/go.mod h1:IXM97Txy2VM4PJ3gI61r1YEk/gAj6zAHN3AdZt6S9Ww=
3131
golang.org/x/sync v0.13.0 h1:AauUjRAJ9OSnvULf/ARrrVywoJDy0YS2AwQ98I37610=
3232
golang.org/x/sync v0.13.0/go.mod h1:1dzgHSNfp02xaA81J2MS99Qcpr2w7fw1gpm99rleRqA=
3333
golang.org/x/sys v0.32.0 h1:s77OFDvIQeibCmezSnk/q6iAfkdiQaJi4VzroCFrN20=
3434
golang.org/x/sys v0.32.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k=
35-
golang.org/x/tools v0.32.0 h1:Q7N1vhpkQv7ybVzLFtTjvQya2ewbwNDZzUgfXGqtMWU=
36-
golang.org/x/tools v0.32.0/go.mod h1:ZxrU41P/wAbZD8EDa6dDCa6XfpkhJ7HFMjHJXfBDu8s=
35+
golang.org/x/tools v0.30.0 h1:BgcpHewrV5AUp2G9MebG4XPFI1E2W41zU1SaqVA9vJY=
36+
golang.org/x/tools v0.30.0/go.mod h1:c347cR/OJfw5TI+GfX7RUPNMdDRRbjvYTS0jPyvsVtY=
3737
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
3838
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
3939
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=

tools/tools.go

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)