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
The text was updated successfully, but these errors were encountered:
apparentlymart
changed the title
cmd/go: panic when running "go mod tidy" in an empty module
cmd/go: 1.11rc1 panic when running "go mod tidy" in an empty module
Aug 18, 2018
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes, 1.11rc1 is the latest release at the time of writing.
What operating system and processor architecture are you using (
go env
)?What did you do?
In a new directory, I created a
go.mod
file with the following content:No other file or directory is present in this directory.
I then ran
go mod tidy
.What did you expect to see?
I expected this to be a no-op, returning to my shell prompt with no error.
(I ran this mainly out of curiosity, not because I expected any particular result.)
What did you see instead?
It seems that this line is expecting at least one element in
r.buildList
:go/src/cmd/go/internal/modload/load.go
Lines 829 to 837 in 807e7f2
The text was updated successfully, but these errors were encountered: