From 0f70b4cedf587c0717eeb5945d0b1e2621d84a3a Mon Sep 17 00:00:00 2001 From: Maxime David Date: Thu, 27 Aug 2026 10:18:38 +0000 Subject: [PATCH] feat: bump min go version to 1.26 --- .github/workflows/build-lambda-zip.yml | 2 +- .github/workflows/tests.yml | 21 ++------------------- go.mod | 2 +- lambdaurl/testdata/testfunc/go.mod | 2 +- 4 files changed, 5 insertions(+), 22 deletions(-) diff --git a/.github/workflows/build-lambda-zip.yml b/.github/workflows/build-lambda-zip.yml index b3b76c4f..d3d8704f 100644 --- a/.github/workflows/build-lambda-zip.yml +++ b/.github/workflows/build-lambda-zip.yml @@ -12,7 +12,7 @@ jobs: name: install build-lambda-zip on ${{ matrix.platform }} strategy: matrix: - go-version: [1.12, 1.13] + go-version: [1.27, 1.26] platform: [ubuntu-latest, macos-latest, windows-latest] steps: - name: Setup Go diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index c94e320a..d1330d3f 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -13,16 +13,6 @@ jobs: go: - "1.27" - "1.26" - - "1.25" - - "1.24" - - "1.23" - - "1.22" - - "1.21" - - "1.20" - - "1.19" - - "1.18" - - "1.17" - - "1.16" steps: - name: Set up Go ${{ matrix.go }} @@ -35,14 +25,6 @@ jobs: - name: Check out code into the Go module directory uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 - - name: Edit the go.mod file to allow tests to run for versions of go before 1.16 - run: > - if [[ ${{ matrix.go }} < "1.16" ]]; then - sed -i.bak 's/^.*retract.*$//' go.mod - else - echo "no edit required" - fi - - name: go test run: go test -v -race ./... @@ -52,7 +34,8 @@ jobs: strategy: matrix: go: - - "1.25" + - "1.27" + - "1.26" steps: - name: Set up Go ${{ matrix.go }} uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6 diff --git a/go.mod b/go.mod index 81f4d599..675e473f 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/aws/aws-lambda-go -go 1.18 +go 1.26 require github.com/stretchr/testify v1.7.2 diff --git a/lambdaurl/testdata/testfunc/go.mod b/lambdaurl/testdata/testfunc/go.mod index c5b365c1..3deeb243 100644 --- a/lambdaurl/testdata/testfunc/go.mod +++ b/lambdaurl/testdata/testfunc/go.mod @@ -4,4 +4,4 @@ require github.com/aws/aws-lambda-go v1.40.0 replace github.com/aws/aws-lambda-go => ../../../ -go 1.20 +go 1.26