Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve weird Go compiler error "malformed module path: missing dot in first path element" #70

Open
jfrohnhofen opened this issue Jun 11, 2021 · 0 comments
Labels
build Related to build system enhancement New feature or request

Comments

@jfrohnhofen
Copy link
Contributor

Full example: "build command-line-arguments: cannot load exp-compute/vta/hw/dta_v1/sim: malformed module path "exp-compute/v
ta/hw/dta_v1/sim": missing dot in first path element"

The error occurs when importing some package that does not exist (i.e., there is no .go file in that directory). So Go is correct, but it should show the file the wrong import occurs in (instead of "command-line-arguments") and the "missing dot" part is also misleading.

The "command-line-arguments" problem can probably be solved by doing "go compile" and running the binary instead of the current "go run".

@jfrohnhofen jfrohnhofen added enhancement New feature or request build Related to build system labels Jun 11, 2021
@jfrohnhofen jfrohnhofen added this to the v1.1 milestone Jun 11, 2021
@jfrohnhofen jfrohnhofen removed this from the v2.0 milestone Sep 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Related to build system enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant