Skip to content

Commit 9ddd26f

Browse files
Add tests on Go 1.22, and upgrade x/tools to make them work (#315)
I guess our x/tools was too old? I'm unclear on how x/tools versioning works with language versioning. Anyway, now it all works. Fixes #312. I have: - [x] Written a clear PR title and description (above) - [x] Signed the [Khan Academy CLA](https://www.khanacademy.org/r/cla) - [x] Added tests covering my changes, if applicable (n/a) - [x] Included a link to the issue fixed, if applicable - [x] Included documentation, for new features (n/a) - [x] Added an entry to the changelog
1 parent 7740a6a commit 9ddd26f

File tree

4 files changed

+10
-11
lines changed

4 files changed

+10
-11
lines changed

.github/workflows/go.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313
strategy:
1414
matrix:
15-
go: [ '1.18', '1.19', '1.20', '1.21' ]
15+
go: [ '1.18', '1.19', '1.20', '1.21', '1.22' ]
1616

1717
steps:
1818
- name: Set up Go

docs/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ When releasing a new version:
2020

2121
<!-- Add new changes in this section! -->
2222

23+
Note that genqlient is now tested through Go 1.22.
24+
2325
### Breaking changes:
2426

2527
### New features:

go.mod

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ require (
88
github.com/bradleyjkemp/cupaloy/v2 v2.6.0
99
github.com/stretchr/testify v1.8.2
1010
github.com/vektah/gqlparser/v2 v2.5.8
11-
golang.org/x/tools v0.9.3
11+
golang.org/x/tools v0.18.0
1212
gopkg.in/yaml.v2 v2.4.0
1313
)
1414

@@ -20,7 +20,6 @@ require (
2020
github.com/hashicorp/golang-lru/v2 v2.0.3 // indirect
2121
github.com/mitchellh/mapstructure v1.5.0 // indirect
2222
github.com/pmezard/go-difflib v1.0.0 // indirect
23-
golang.org/x/mod v0.10.0 // indirect
24-
golang.org/x/sys v0.8.0 // indirect
23+
golang.org/x/mod v0.15.0 // indirect
2524
gopkg.in/yaml.v3 v3.0.1 // indirect
2625
)

go.sum

Lines changed: 5 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)