Skip to content

Support getting go version from toolchain directive #557

Open
@ahrtr

Description

@ahrtr

Based on the Getting go version from the go.mod file,

The go directive in go.mod can specify a patch version or omit it altogether (e.g., go 1.22.0 or go 1.22).
If a patch version is specified, that specific patch version will be used.
If no patch version is specified, it will search for the latest available patch version in the cache, 
versions-manifest.json, and the "official Go language website", in that order.

If the go directive doesn't specify a patch version, I think it should use the version specified in toolchain directive (i.e. toolchain go1.23.6) if present. If the toolchain isn't present at all, then you continue to search other options.

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestNew feature or request to improve the current logic

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions