Fall back to Go 1.26 with a warning when the version file is missing - #33
Merged
Conversation
sverdlov93
force-pushed
the
bugfix/go-cache-without-gomod
branch
from
September 6, 2026 14:08
c63423d to
14c8d13
Compare
sverdlov93
force-pushed
the
bugfix/go-cache-without-gomod
branch
from
September 6, 2026 14:24
14c8d13 to
6a371d5
Compare
sverdlov93
force-pushed
the
bugfix/go-cache-without-gomod
branch
from
September 6, 2026 14:34
6a371d5 to
6e1d7de
Compare
sverdlov93
force-pushed
the
bugfix/go-cache-without-gomod
branch
from
September 6, 2026 14:39
6e1d7de to
bfd7bd3
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Since #28 this action defaults to
go-version-file: go.modinstead of a concretego-version.actions/setup-gotreats a missing version file as fatal, so callers that do not passgo-versionand do not have the file in the workspace die on the first step.Change
When
go-versionis not set andgo-version-filedoes not exist, install Go 1.26 and warn. Nothing else changes: an existing version file is still read, and an explicitgo-versionstill wins.1.26 is the previous supported major (current is 1.27). A census of the 19 public
jfrog/*callers shows flagship CLIs already on 1.26.x; older modules (1.22–1.25) never hit this path because they have ago.mod.Resolution table
go-versionsetup-goreceives1.24go-version=1.24go-version-file=<path>go-version=1.26