Hi,
I'm trying to build a Go module that has a transitive dependency on
golang.zx2c4.com/wireguard [1]. My organization requires me to use GOPROXY=direct. I get the following error when running any go command:
I can work around this by adding the following replace directive to my main package's go.mod:
A further piece of information is that a member of my team who joined 6 months ago didn't have this problem, but when he cleaned his module cache, he reproduced it. So something with the module mirror or go command must have changed between then and now.
Thanks for your help!
-Ben
[1]