From f31881cfe01cc45d851bad666077977e3691004e Mon Sep 17 00:00:00 2001 From: Bhanu Reddy Date: Fri, 14 Nov 2025 13:02:59 +0530 Subject: [PATCH 1/4] Check the go upgrade issue --- .github/workflows/test.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0cf4756b..b20e2fdd 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -74,6 +74,18 @@ jobs: sudo apt-get update sudo apt-get install -y mono-complete + - name: Install Mono on macOS + if: startsWith(matrix.os, 'macos') + env: + HOMEBREW_NO_AUTO_UPDATE: 1 + run: | + set -e + brew install mono || brew install --cask mono-mdk + if [ -x "/Library/Frameworks/Mono.framework/Versions/Current/Commands/mono" ]; then + echo "/Library/Frameworks/Mono.framework/Versions/Current/Commands" >> "$GITHUB_PATH" + fi + mono --version + - name: Lint run: go vet ./... From d6e796b839f99172d0f5ebb9cf459bd53aa39333 Mon Sep 17 00:00:00 2001 From: Bhanu Reddy Date: Fri, 14 Nov 2025 13:24:33 +0530 Subject: [PATCH 2/4] Updated to fetch right go version --- .github/workflows/test.yml | 5 ++++- go.mod | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b20e2fdd..17e73d24 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -51,7 +51,10 @@ jobs: check-latest: true - name: Setup Go with cache - uses: jfrog/.github/actions/install-go-with-cache@main + uses: actions/setup-go@v5 + with: + go-version-file: 'go.mod' + cache: true - name: Install NuGet uses: nuget/setup-nuget@v2 diff --git a/go.mod b/go.mod index c4a6f279..66ed1f3e 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/jfrog/build-info-go -go 1.24.6 +go 1.22 require ( github.com/BurntSushi/toml v1.4.0 From 77b64162e9635f8bcc14708a5ecbda4381766755 Mon Sep 17 00:00:00 2001 From: Bhanu Reddy Date: Fri, 14 Nov 2025 13:30:28 +0530 Subject: [PATCH 3/4] Updated to fetch right go version --- .github/workflows/test.yml | 7 ++++++- go.mod | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 17e73d24..2359e26b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -15,6 +15,8 @@ jobs: unit-test: name: ${{ matrix.os }}, node ${{ matrix.node }}, python ${{ matrix.python }} runs-on: ${{ matrix.os }} + env: + GOTOOLCHAIN: 'go1.25.4' # Force specific Go version strategy: fail-fast: false matrix: @@ -93,4 +95,7 @@ jobs: run: go vet ./... - name: Tests - run: go test -v -race -timeout 0 -cover ./... + run: | + set -e + go env + go test -v -race -timeout 0 -cover ./... diff --git a/go.mod b/go.mod index 66ed1f3e..35ca05a2 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/jfrog/build-info-go -go 1.22 +go 1.25.4 require ( github.com/BurntSushi/toml v1.4.0 From 3db21f94b373baf1f2f3cf09a9ba7bcd2a447b03 Mon Sep 17 00:00:00 2001 From: Bhanu Reddy Date: Fri, 14 Nov 2025 13:38:21 +0530 Subject: [PATCH 4/4] Updated to fetch right go version --- .github/workflows/test.yml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2359e26b..17e73d24 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -15,8 +15,6 @@ jobs: unit-test: name: ${{ matrix.os }}, node ${{ matrix.node }}, python ${{ matrix.python }} runs-on: ${{ matrix.os }} - env: - GOTOOLCHAIN: 'go1.25.4' # Force specific Go version strategy: fail-fast: false matrix: @@ -95,7 +93,4 @@ jobs: run: go vet ./... - name: Tests - run: | - set -e - go env - go test -v -race -timeout 0 -cover ./... + run: go test -v -race -timeout 0 -cover ./...