/ go Public
cmd/go: bad error message for local imports in module mode #47088
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
In module mode, if an
importstatement refers to a relative path it is currently supposed to fail with
relative import not supported:
Lines 245 to 247 in 600a2a4
However, we seem to be missing test coverage for that error message, and the actual error that is printed for that case is substantially different:
$ go env
That error message comes from here:
Line 758 in 600a2a4
which implies that the error returned by
importFromModulesis either not produced or not propagated as we expect.
Discovered via https://stackoverflow.com/q/68261085.
CC @matloob @jayconrod
The text was updated successfully, but these errors were encountered: