Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/go: add tests describing 'go run' behavior with GO111MODULE=on #26709
Please answer these questions before submitting your issue. Thanks!
This might be a duplicate of/covered by the solution to #26639, but I wanted to create a separate issue for
What version of Go are you using (
I think this is intended behavior.
It seems awkward to have to look at the set of imports to determine whether we need a module definition: I'd rather we require it unconditionally.
Actually, I don't know why I thought this should work. You're quite right; if I can create an arbitrary
I'd be happy for this to be closed unless you think there's actually something to decide?
Actually @bcmills, I think there is some sort of issue here, even when I do create a
succeeds and gives:
But then if I:
So it seems, with
Or do you think this is a duplicate of #26722?
referenced this issue
Sep 11, 2018
I would expect
It's less clear to me whether