You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I created a new go.mod file by running go mod init log. here log is module name.
then after writing some code in main package, I tried to build by executing go build at root of my module.
That did nothing. No binary was built. After searching on internet for a while I found that module names without a dot in first component are reserved for standard library.
What did you expect to see?
I expected a warning message saying that 'log' is name of a standard library module and should not be used
Or
warning message like - module names should contain dot in first component.
What did you see instead?
The go build stopped without building module with no error / warnings.
The text was updated successfully, but these errors were encountered:
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
yes, with go1.15.3
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I created a new
go.mod
file by runninggo mod init log
. herelog
is module name.then after writing some code in main package, I tried to build by executing
go build
at root of my module.That did nothing. No binary was built. After searching on internet for a while I found that module names without a dot in first component are reserved for standard library.
What did you expect to see?
I expected a warning message saying that 'log' is name of a standard library module and should not be used
Or
warning message like - module names should contain dot in first component.
What did you see instead?
The go build stopped without building module with no error / warnings.
The text was updated successfully, but these errors were encountered: