diff --git a/.github/workflows/api_diff_check.yml b/.github/workflows/api_diff_check.yml index 4b797197..612223cc 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 3b0e5b5b..f2ddcb63 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 529fb641..24881fbe 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 98ca0963..0624a94a 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 881ccf7d..4315da61 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 f2ce1b08..c01f0e7e 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,3 @@ module github.com/aws/smithy-go -go 1.21 +go 1.22