Skip to content

cmd/go: mod edit: missing -droptoolchain flag #73744

Open
@maxb

Description

@maxb

Go version

go version go1.24.3 linux/amd64

Output of go env in your module/workspace:

n/a

What did you do?

'go get -u ' resulted in automatically adding a toolchain line to go.mod

I wanted to remove it again, using 'go mod edit' so the update and follow-up were reproducible as a CLI command for later re-use.

What did you see happen?

'go mod edit' has flags to do almost any other transformation of a go.mod you might want, including '-toolchain' for adding a toolchain. Pretty much every other flag has a '-dropXXX' equivalent.

What did you expect to see?

But '-droptoolchain' is missing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    FeatureRequestIssues asking for a new feature that does not need a proposal.FixPendingIssues that have a fix which has not yet been reviewed or submitted.GoCommandcmd/goToolProposalIssues describing a requested change to a Go tool or command-line program.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions