Skip to content

Commit 179a687

Browse files
committed
add Go 1.24.x, drop 1.22.x
1 parent 3b99647 commit 179a687

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ jobs:
44
test:
55
strategy:
66
matrix:
7-
go-version: [1.22.x, 1.23.x]
7+
go-version: [1.23.x, 1.24.x]
88
os: [ubuntu-latest, macos-latest, windows-latest]
99
runs-on: ${{ matrix.os }}
1010
steps:
@@ -17,7 +17,7 @@ jobs:
1717

1818
# Static checks from this point forward. Only run on one Go version and on
1919
# Linux, since it's the fastest platform, and the tools behave the same.
20-
- if: matrix.os == 'ubuntu-latest' && matrix.go-version == '1.23.x'
20+
- if: matrix.os == 'ubuntu-latest' && matrix.go-version == '1.24.x'
2121
run: diff <(echo -n) <(gofmt -s -d .)
22-
- if: matrix.os == 'ubuntu-latest' && matrix.go-version == '1.23.x'
22+
- if: matrix.os == 'ubuntu-latest' && matrix.go-version == '1.24.x'
2323
run: go vet ./...

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@
77
Enforce a stricter format than `gofmt`, while being backwards compatible.
88
That is, `gofumpt` is happy with a subset of the formats that `gofmt` is happy with.
99

10-
The tool is a fork of `gofmt` as of Go 1.23.0, and requires Go 1.22 or later.
10+
The tool is a fork of `gofmt` as of Go 1.24.0, and requires Go 1.23 or later.
1111
It can be used as a drop-in replacement to format your Go code,
1212
and running `gofmt` after `gofumpt` should produce no changes.
1313
For example:
1414

1515
gofumpt -l -w .
1616

1717
Some of the Go source files in this repository belong to the Go project.
18-
The project includes copies of `go/printer` and `go/doc/comment` as of Go 1.23.0
18+
The project includes copies of `go/printer` and `go/doc/comment` as of Go 1.24.0
1919
to ensure consistent formatting independent of what Go version is being used.
2020
The [added formatting rules](#Added-rules) are implemented in the `format` package.
2121

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module mvdan.cc/gofumpt
22

3-
go 1.22.0
3+
go 1.23
44

55
require (
66
github.com/go-quicktest/qt v1.101.0

testdata/gofumpt-external/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module test/gofumpt-external
22

3-
go 1.22
3+
go 1.23
44

55
require mvdan.cc/gofumpt v0.6.1-0.20240717113859-88a300bbd6dc
66

0 commit comments

Comments
 (0)