title: Go modules and dependencies with modified vendors
body: <p>I am trying to convert one Go project to the new modules standard, but I am having trouble with one dependency.</p>
  
  <p>That repository has vendored a library (in this case golang.org/x/net/html) to add some functionality to the library; meaning that it has modified the vendored dependency (added a method to a struct).</p>
  
  <p>So the problem is that after doing <code>go mod init</code>, when i execute <code>go get ./...</code> the system complains about a call to that added functionality, because it ignores the modified vendor and tries to import the upstream library instead.</p>
  
  <p>Is there any way to let <code>go mod</code> know that it should use the vendored dependency?</p>