How to override a dependency in go modules?
问题 In dep you have the option to override a dependency and have it point to a different repo for example in the following https://github.com/kubermatic/glog-logrus library one needs to add the following lines to the Gopkg.toml file: [[override]] name = "github.com/golang/glog" source = "github.com/kubermatic/glog-logrus" Then in the codebase you import "github.com/golang/glog . However, in go modules I don't see such an option? which leads me to think the only solution is to change the import to