From 31ce789850bf9f3d1b709bb0a9ba5c8119707fa9 Mon Sep 17 00:00:00 2001 From: BinBin He Date: Thu, 27 Nov 2025 03:27:55 -0800 Subject: [PATCH] Use supported Go version in module --- .github/workflows/release.yml | 7 ++++++- go.mod | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b2ccb99..338b4cb 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,6 +1,9 @@ name: Release on: + push: + branches: [main] + tags: ['v*'] release: types: [published] @@ -40,7 +43,9 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 with: - go-version-file: go.mod + # Use a pinned Go version instead of parsing go.mod to avoid + # failing on unsupported prerelease versions in the module file. + go-version: '1.23' - name: Download dependencies run: go mod download diff --git a/go.mod b/go.mod index 414d124..b069fab 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/binsquare/envmap -go 1.25.4 +go 1.23 require ( github.com/1Password/connect-sdk-go v1.5.0