-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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
cmd/go: mod init shouldn't log information it was given on the command line #37388
Comments
In principle I agree, provided that the module path was specified explicitly. However, if the module path was inferred automatically (for example, from the location within |
(#35070 (comment) describes another situation where the logging is probably helpful, but the proper fix there is to stop writing the |
It may log more useful information in case it is converting from an old versioning tool. However, as I wrote, the module path, alone, should always be printed on |
Just to clarify, the reason I'm writing a |
What's wrong with invoking |
Nothing. But I think |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
In an empty directory:
What did you expect to see?
The module path of the new module
test
onstdout
.What did you see instead?
on
stderr
.This kind of output should only be enabled with a
-v
flag.By default,
go mod init
should print themodule path
on stdout, and a-v
flag should be added to implement the current behavior.The text was updated successfully, but these errors were encountered: