From 048a25f0f2360787e267ac3025c7f74a9aa3a3c9 Mon Sep 17 00:00:00 2001 From: Thomas Pelletier Date: Tue, 3 Mar 2026 01:29:35 -0500 Subject: [PATCH] Go 1.26 (#1030) * ci(release): drop unsupported windows/arm targets --- .github/workflows/coverage.yml | 2 +- .github/workflows/lint.yml | 2 +- .github/workflows/release.yml | 2 +- .github/workflows/workflow.yml | 2 +- .goreleaser.yaml | 3 --- test-go-versions.sh | 9 +++++---- 6 files changed, 9 insertions(+), 11 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 3904336..4635619 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -15,6 +15,6 @@ jobs: - name: Setup go uses: actions/setup-go@v6 with: - go-version: "1.25" + go-version: "1.26" - name: Run tests with coverage run: ./ci.sh coverage -d "${GITHUB_BASE_REF-HEAD}" diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 8b24df5..3a9f1e4 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -15,7 +15,7 @@ jobs: - name: Setup go uses: actions/setup-go@v6 with: - go-version: "1.24" + go-version: "1.26" - name: Run golangci-lint uses: golangci/golangci-lint-action@v9 with: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 81316c5..9d1fae9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -22,7 +22,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v6 with: - go-version: "1.25" + go-version: "1.26" - name: Login to GitHub Container Registry uses: docker/login-action@v3 with: diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 45e0423..07f8b39 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -13,7 +13,7 @@ jobs: fail-fast: false matrix: os: [ 'ubuntu-latest', 'windows-latest', 'macos-latest', 'macos-14' ] - go: [ '1.24', '1.25' ] + go: [ '1.25', '1.26' ] runs-on: ${{ matrix.os }} name: ${{ matrix.go }}/${{ matrix.os }} steps: diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 47f0f59..3e19ea7 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -22,7 +22,6 @@ builds: - linux_riscv64 - windows_amd64 - windows_arm64 - - windows_arm - darwin_amd64 - darwin_arm64 - id: tomljson @@ -42,7 +41,6 @@ builds: - linux_riscv64 - windows_amd64 - windows_arm64 - - windows_arm - darwin_amd64 - darwin_arm64 - id: jsontoml @@ -62,7 +60,6 @@ builds: - linux_arm - windows_amd64 - windows_arm64 - - windows_arm - darwin_amd64 - darwin_arm64 universal_binaries: diff --git a/test-go-versions.sh b/test-go-versions.sh index 4e877c8..5fe5c77 100755 --- a/test-go-versions.sh +++ b/test-go-versions.sh @@ -9,7 +9,7 @@ YELLOW='\033[1;33m' BLUE='\033[0;34m' NC='\033[0m' # No Color -# Go versions to test (1.11 through 1.25) +# Go versions to test (1.11 through 1.26) GO_VERSIONS=( "1.11" "1.12" @@ -26,6 +26,7 @@ GO_VERSIONS=( "1.23" "1.24" "1.25" + "1.26" ) # Default values @@ -64,7 +65,7 @@ EXAMPLES: $0 # Test all Go versions in parallel $0 --sequential # Test all Go versions sequentially $0 1.21 1.22 1.23 # Test specific versions - $0 --verbose --output ./results 1.24 1.25 # Verbose output to custom directory + $0 --verbose --output ./results 1.25 1.26 # Verbose output to custom directory EXIT CODES: 0 Recent Go versions pass (good compatibility) @@ -136,8 +137,8 @@ fi # Validate Go versions for version in "${GO_VERSIONS[@]}"; do - if ! [[ "$version" =~ ^1\.(1[1-9]|2[0-5])$ ]]; then - log_error "Invalid Go version: $version. Supported versions: 1.11-1.25" + if ! [[ "$version" =~ ^1\.(1[1-9]|2[0-6])$ ]]; then + log_error "Invalid Go version: $version. Supported versions: 1.11-1.26" exit 1 fi done