Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/go: confusing error "missing dot in first path element" when importing missing package #35273
CL 203118 changes the module importer to print more friendly error as:
Full example exists here: https://github.com/a8m/go-issue-34769
If you ask yourself why creating a module without any Go files (the bar module), well, we tried to build a few Docker images and accidentally forgot to copy some of the Go files to the image. It took us hours to figure out what the "missing dot in first path element" means in this case.