From ac966a0d9ede70151e03ce9bb546e2f75eec5797 Mon Sep 17 00:00:00 2001 From: Oleksandr Redko Date: Tue, 14 Jan 2025 15:10:27 +0200 Subject: [PATCH] Use `go 1.22` to allow building with go1.18 --- go.mod | 2 +- script/generate.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/go.mod b/go.mod index e367366bdc7..7899c7474c1 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/google/go-github/v68 -go 1.22.0 +go 1.22 require ( github.com/google/go-cmp v0.6.0 diff --git a/script/generate.sh b/script/generate.sh index 8d5f240dfaa..79ed031f420 100755 --- a/script/generate.sh +++ b/script/generate.sh @@ -43,6 +43,6 @@ for dir in $MOD_DIRS; do ( cd "$dir" go generate ./... - GOTOOLCHAIN="go1.22+auto" go mod tidy + go mod tidy ) done