Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/go: Cannot find module providing package of custom libraries #28047
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
@pprasanthi I'm not 100% sure what the exact issue is here, but a few quick comments.
It looks like you might not be including domain names in your import paths? For example, here:
Also note that relative imports like import "./subdir" do not work with modules. See for example #26645 (comment).
Do you think either of those might explain what you are seeing?
Sorry if this is not a 100% helpful comment, but just trying to see if a question or two might help advance the conversation here...
This is working as designed.
The import in
In module mode, you must always use fully-qualified import paths.