Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
maxb opened this issue May 16, 2025 · 3 comments · May be fixed by #73776
Open

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

maxb opened this issue May 16, 2025 · 3 comments · May be fixed by #73776
Labels
FeatureRequest Issues asking for a new feature that does not need a proposal. NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. ToolProposal Issues describing a requested change to a Go tool or command-line program.
Milestone

Comments

@maxb
Copy link

maxb commented May 16, 2025

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.

@gabyhelp
Copy link

@gabyhelp gabyhelp added the ToolProposal Issues describing a requested change to a Go tool or command-line program. label May 16, 2025
@seankhliao seankhliao changed the title go mod edit: Lacks -droptoolchain flag cmd/go: mod edit: missing -droptoolchain flag May 16, 2025
@mknyszek mknyszek added the NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. label May 16, 2025
@mknyszek
Copy link
Contributor

CC @golang/command-line

@mknyszek mknyszek added this to the Backlog milestone May 16, 2025
@mknyszek mknyszek added the FeatureRequest Issues asking for a new feature that does not need a proposal. label May 16, 2025
@Narita-1095305 Narita-1095305 linked a pull request May 19, 2025 that will close this issue
@gopherbot
Copy link
Contributor

Change https://go.dev/cl/674075 mentions this issue: cmd/go: mod edit: add -droptoolchain flag

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
FeatureRequest Issues asking for a new feature that does not need a proposal. NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. ToolProposal Issues describing a requested change to a Go tool or command-line program.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants