Skip to content

gvm install conflicts with local go.mod version #525

@devhindo

Description

@devhindo

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

  1. Ensure the current directory has a go.mod file with a version line like go 1.25.
  2. Run the command: gvm install go1.25.4.
  3. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions