title: How to override a dependency in go modules?
body: <p>In <code>dep</code> you have the option to override a dependency and have it point to a different repo for example in the following <a href="https://github.com/kubermatic/glog-logrus" rel="nofollow noreferrer">https://github.com/kubermatic/glog-logrus</a> library one needs to add the following lines to the Gopkg.toml file:</p>
  
  <pre><code>[[override]]
    name = "github.com/golang/glog"
    source = "github.com/kubermatic/glog-logrus"
  </code></pre>
  
  <p>Then in the codebase you <code>import "github.com/golang/glog</code>. 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 <code>github.com/kubermatic/glog-logrus</code>.</p>
  
  <p>Thanks!</p>