From d7c310e61dd7a735519b781b82f1e3e17556852d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20Madrigal=20=F0=9F=90=A7?= <599908+Madrigal@users.noreply.github.com> Date: Thu, 13 Feb 2025 16:09:14 -0500 Subject: [PATCH] Bump go version to 1.22 --- .github/workflows/api_diff_check.yml | 2 +- .github/workflows/codegen.yml | 2 +- .github/workflows/go.yml | 2 +- codegen/smithy-go-codegen-test/smithy-build.json | 4 ++-- .../java/software/amazon/smithy/go/codegen/GoModuleInfo.java | 2 +- go.mod | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/api_diff_check.yml b/.github/workflows/api_diff_check.yml index 4b797197d..612223ccb 100644 --- a/.github/workflows/api_diff_check.yml +++ b/.github/workflows/api_diff_check.yml @@ -16,7 +16,7 @@ jobs: - name: Set up Go 1.x uses: actions/setup-go@v2 with: - go-version: "1.21" + go-version: "1.22" id: go - name: Check out code into the Go module directory diff --git a/.github/workflows/codegen.yml b/.github/workflows/codegen.yml index 3b0e5b5b6..f2ddcb63b 100644 --- a/.github/workflows/codegen.yml +++ b/.github/workflows/codegen.yml @@ -13,7 +13,7 @@ jobs: strategy: matrix: os: [ubuntu-latest] - go-version: ["1.21"] + go-version: ["1.22"] env: JAVA_TOOL_OPTIONS: "-Xmx2g" steps: diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 529fb6419..24881fbe4 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -13,7 +13,7 @@ jobs: strategy: matrix: os: [ubuntu-latest, macos-latest, windows-latest] - go-version: ["1.21", "1.22", "1.23"] + go-version: ["1.22", "1.23", "1.24"] steps: - uses: actions/checkout@v2 diff --git a/codegen/smithy-go-codegen-test/smithy-build.json b/codegen/smithy-go-codegen-test/smithy-build.json index 98ca09632..0624a94a4 100644 --- a/codegen/smithy-go-codegen-test/smithy-build.json +++ b/codegen/smithy-go-codegen-test/smithy-build.json @@ -6,14 +6,14 @@ "module": "github.com/aws/smithy-go/internal/tests/service/weather", "moduleVersion": "0.0.1", "generateGoMod": true, - "goDirective": "1.18" + "goDirective": "1.22" }, "go-server-codegen": { "service": "example.weather#Weather", "module": "github.com/aws/smithy-go/internal/tests/server/weather", "moduleVersion": "0.0.1", "generateGoMod": true, - "goDirective": "1.18" + "goDirective": "1.22" } } } diff --git a/codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/GoModuleInfo.java b/codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/GoModuleInfo.java index 881ccf7d1..4315da613 100644 --- a/codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/GoModuleInfo.java +++ b/codegen/smithy-go-codegen/src/main/java/software/amazon/smithy/go/codegen/GoModuleInfo.java @@ -27,7 +27,7 @@ public final class GoModuleInfo { - public static final String DEFAULT_GO_DIRECTIVE = "1.15"; + public static final String DEFAULT_GO_DIRECTIVE = "1.22"; private List dependencies; diff --git a/go.mod b/go.mod index f2ce1b083..c01f0e7e1 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,3 @@ module github.com/aws/smithy-go -go 1.21 +go 1.22