We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In internal/modcmd/mod.go there is a function addModFlags that is never used:
internal/modcmd/mod.go
addModFlags
func addModFlags(cmd *base.Command) { cmd.Flag.StringVar(&cfg.ModFile, "modfile", "", "") }
The flag is set in the internal.work.AddModCommonFlags function, so it was probably not removed in https://golang.org/cl/202564.
internal.work.AddModCommonFlags
The text was updated successfully, but these errors were encountered:
Change https://golang.org/cl/219197 mentions this issue: cmd/go/internal/modcmd: remove dead function addModFlag
cmd/go/internal/modcmd: remove dead function addModFlag
Sorry, something went wrong.
Thanks. CL 219197 will remove this.
7385947
Thanks.
By the way; I find it unusual that no tool reported this problem. Non even staticcheck -unused.whole-program .
staticcheck -unused.whole-program
Successfully merging a pull request may close this issue.
In
internal/modcmd/mod.go
there is a functionaddModFlags
that is never used:The flag is set in the
internal.work.AddModCommonFlags
function, so it was probably not removed in https://golang.org/cl/202564.The text was updated successfully, but these errors were encountered: