Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/go: errors while testing go modules #28336
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
The second error message seems to be accurate. It says
See also pierrec/lz4#33.
referenced this issue
Oct 23, 2018
I am not aware of any absolute paths in the import statements other than "github.com/...". Basically, all the import paths I see starts with "github.com/..." or a similar github private repo. I have "sync", "time", "container/list" but these are golang packages.
May be it is complaining about the absolute path in some dependency which I use ?
So, while initiating the mod I was giving an absolute path for the module like 'go mod init /user/temp' this was the cause of the first error!
Now, when I change the module path to something else like 'go mod init user/temp' it works fine.
But, if I do 'go test all' I still see this error which is expected as you mentioned earlier.