From 56567880479aa715b373a16b865699835b82d6d2 Mon Sep 17 00:00:00 2001 From: Oleksandr Redko Date: Fri, 4 Oct 2024 17:17:15 +0300 Subject: [PATCH] Set Go 1.22 as minimum required version --- README.md | 2 +- example/newreposecretwithlibsodium/go.mod | 4 +--- go.mod | 2 +- scrape/go.mod | 4 +--- tools/go.mod | 4 +--- 5 files changed, 5 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 6f5c7aaea77..62e91db7ba1 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ go-github is a Go client library for accessing the [GitHub API v3][]. -Currently, **go-github requires Go version 1.13 or greater**. go-github tracks +Currently, **go-github requires Go version 1.22 or greater**. go-github tracks [Go's version support policy][support-policy]. We do our best not to break older versions of Go if we don't have to, but due to tooling constraints, we don't always test older versions. diff --git a/example/newreposecretwithlibsodium/go.mod b/example/newreposecretwithlibsodium/go.mod index 67612f7e84e..f81fa12c836 100644 --- a/example/newreposecretwithlibsodium/go.mod +++ b/example/newreposecretwithlibsodium/go.mod @@ -1,8 +1,6 @@ module newreposecretwithlibsodium -go 1.21 - -toolchain go1.22.0 +go 1.22.0 require ( github.com/GoKillers/libsodium-go v0.0.0-20171022220152-dd733721c3cb diff --git a/go.mod b/go.mod index d1e35fab661..f52bcb27978 100644 --- a/go.mod +++ b/go.mod @@ -5,4 +5,4 @@ require ( github.com/google/go-querystring v1.1.0 ) -go 1.21 +go 1.22.0 diff --git a/scrape/go.mod b/scrape/go.mod index 91a05ac4d63..d34c4cfb1c6 100644 --- a/scrape/go.mod +++ b/scrape/go.mod @@ -1,8 +1,6 @@ module github.com/google/go-github/scrape -go 1.21 - -toolchain go1.22.0 +go 1.22.0 require ( github.com/PuerkitoBio/goquery v1.9.2 diff --git a/tools/go.mod b/tools/go.mod index 1b61373c3e8..11e959b922d 100644 --- a/tools/go.mod +++ b/tools/go.mod @@ -1,8 +1,6 @@ module tools -go 1.21 - -toolchain go1.22.0 +go 1.22.0 require ( github.com/alecthomas/kong v1.2.1