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
go version devel +65fa2b615b Fri Aug 3 23:35:53 2018 +0000 linux/amd64
Does this issue reproduce with the latest release?
No (but does using Go 1.11beta3)
What operating system and processor architecture are you using (go env)?
Linux amd64
What did you do?
While playing around with Docker trying to build a cache layer from Go modules I found a case where go mod tidy panics.
At that point there were no Go files, only go.mod and go.sum.
Turns out it is easily reproducible: in an empty directory, adding only a go.mod file with module foo.bar is sufficient to trigger the panic.
This is of course not a valid use case but I don't think the command should panic.
What version of Go are you using (
go version
)?go version devel +65fa2b615b Fri Aug 3 23:35:53 2018 +0000 linux/amd64
Does this issue reproduce with the latest release?
No (but does using Go 1.11beta3)
What operating system and processor architecture are you using (
go env
)?Linux amd64
What did you do?
While playing around with Docker trying to build a cache layer from Go modules I found a case where
go mod tidy
panics.At that point there were no Go files, only
go.mod
andgo.sum
.Turns out it is easily reproducible: in an empty directory, adding only a
go.mod
file withmodule foo.bar
is sufficient to trigger the panic.This is of course not a valid use case but I don't think the command should panic.
What did you expect to see?
Not a panic.
What did you see instead?
The text was updated successfully, but these errors were encountered: