Closed elioengcomp closed 5 years ago
The go.mod
file generation has been removed from GoCenter. Now, for modules that are not converted to Go Modules, GoCenter will use the same go.mod
file generated by the Go client when processing them.
We have also changed the content of modules already present in GoCenter to reflect this change.
Because of that, if you have fetched any of those modules from GoCenter before this change, you might run into a checksum mismatch. We have provided the complete list of modules fixed here. You can use it in case it happens to you to confim that this is the cause. In this case, you should update the content of your go.sum
file to reflect the latest content.
This issue was identified by user
@thepudds
and detailed in the#gocenter
slack channel.The
go.mod
file generated by GoCenter to express the author's intent is causing a different requirements tree to be resolved when compared against the behavior the user is getting when resolving from the VCS.The problematic module is
github.com/coredns/coredns@v1.1.2
. It is not being served by GoCenter because the following dependency is missinggithub.com/ldez/go-auroradns@v0.0.0-20181019221658-b40dfcae7c41
. This missing dependency cannot be processed because of an error on its mod file.The path from the requested module to the missing dependency is:
github.com/coredns/coredns@v1.1.2
->github.com/mholt/caddy@v0.11.2
->github.com/xenolf/lego@v0.0.0-20181211001449-b05b54d1f69a
->github.com/ldez/go-auroradns@v0.0.0-20181019221658-b40dfcae7c41
When resolving from GitHub this issue is not present. The reason is because GoCenter is generating a
go.mod
file forgithub.com/mholt/caddy@v0.11.2
and that is changing the requirements resolution behavior. Here is thego.mod
file generated by GoCenter for this module:The user provided his thoughts about the issues with this approach:
The user also suggested that we could create feature in
goc
to provide this capability in the client side in a less intrusive way: