Skip to content

Bump Go to 1.22.10 or 1.23.4 in go.mod files #3410

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,19 @@ the library is tested against Go version 1.22 and greater. go-github tracks
older versions of Go if we don't have to, but due to tooling constraints, we
don't always test older versions.

Go version 1.22 introduced significant changes to the pattern syntax and matching
behavior of `http.ServerMux` which causes a large number of legacy unit tests to break.
(See https://pkg.go.dev/net/http#hdr-Compatibility-ServeMux for more information.)
As a result, testing of this repo is currently performed by setting this env variable:

```bash
export GODEBUG=httpmuxgo121=1
```

An issue has been created (#3409) requesting assistance in updating all breaking legacy unit
tests when this `GODEBUG` environment variable is not set and Go 1.23.4 or later is
used to perform unit tests.

[support-policy]: https://golang.org/doc/devel/release.html#policy

If you're interested in using the [GraphQL API v4][], the recommended library is
Expand Down
4 changes: 1 addition & 3 deletions example/go.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
module github.com/google/go-github/v68/example

go 1.22.5

toolchain go1.23.2
go 1.22.10

require (
github.com/ProtonMail/go-crypto v0.0.0-20230828082145-3c4c8a2d2371
Expand Down
4 changes: 1 addition & 3 deletions example/newreposecretwithlibsodium/go.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
module newreposecretwithlibsodium

go 1.21

toolchain go1.22.0
go 1.22.10

require (
github.com/GoKillers/libsodium-go v0.0.0-20171022220152-dd733721c3cb
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ require (
github.com/google/go-querystring v1.1.0
)

go 1.21
go 1.22.10
4 changes: 1 addition & 3 deletions scrape/go.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
module github.com/google/go-github/scrape

go 1.23

toolchain go1.23.4
go 1.23.4

require (
github.com/PuerkitoBio/goquery v1.10.1
Expand Down
2 changes: 2 additions & 0 deletions script/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
set -e

CDPATH="" cd -- "$(dirname -- "$0")/.."
# TODO(gmlewis): Remove this when #3409 is resolved.
export GODEBUG=httpmuxgo121=1

if [ "$#" = "0" ]; then
set -- -race -covermode atomic ./...
Expand Down
4 changes: 1 addition & 3 deletions tools/go.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
module tools

go 1.21

toolchain go1.22.0
go 1.23.4

require (
github.com/alecthomas/kong v1.6.0
Expand Down
Loading