Description
The install command currently fails if the go.mod file in the current directory specifies a version (e.g., go 1.25) that does not exactly match the specific patch version being installed.
Steps to Reproduce
- Ensure the current directory has a
go.mod file with a version line like go 1.25.
- Run the command:
gvm install go1.25.4.
- Observe that the installation fails.
Workaround
To make the command work, you currently have to update the go.mod file to match the exact target version (e.g., go 1.25.4).
Expected Behavior
The gvm install command should function independently of the local go.mod file. It should simply download the requested version without checking against the current directory's configuration. Users should have the freedom to download any version, even if it differs from the active project file.
Description
The install command currently fails if the
go.modfile in the current directory specifies a version (e.g.,go 1.25) that does not exactly match the specific patch version being installed.Steps to Reproduce
go.modfile with a version line likego 1.25.gvm install go1.25.4.Workaround
To make the command work, you currently have to update the
go.modfile to match the exact target version (e.g.,go 1.25.4).Expected Behavior
The
gvm installcommand should function independently of the localgo.modfile. It should simply download the requested version without checking against the current directory's configuration. Users should have the freedom to download any version, even if it differs from the active project file.