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
Related to #12871 but more general. When a program such as this one is built, we see an error like:
build $package: cannot load string: malformed module path "string": missing dot in first path element
The problem is with at least one import statement in the package, but although it mentions the package that's being built, it's not clear where the problem might lie. It would be helpful if the error message could mention at least one exact file location that the error has occurred, enabling editors to jump to that location automatically.
The text was updated successfully, but these errors were encountered:
jayconrod
added
NeedsFix
The path to resolution is known, but the work has not been done.
and removed
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
labels
Sep 19, 2019
This error happens when we prepare module build info (the string that go version -m prints). modload.PackageBuildInfo is trying to find a module for each import path. Paths that could not be resolved to modules (typos in this case) trigger a fatal error without position information.
Related to #12871 but more general. When a program such as this one is built, we see an error like:
The problem is with at least one import statement in the package, but although it mentions the package that's being built, it's not clear where the problem might lie. It would be helpful if the error message could mention at least one exact file location that the error has occurred, enabling editors to jump to that location automatically.
The text was updated successfully, but these errors were encountered: