[Solved] Godep processing custom packages


Thanks to @JimB comments I found out the following:

the most obvious and simple solution is just

keep your dependencies in GOPATH, with version control, and just let godep handle them all (@JimB)

So yes, this means adding package(s) to git and all this stuff.

In case if you don’t want/can’t do that, the order of actions can be:

  • Code
  • Test
  • Remove your local dependecies (packages) from vendor
  • Run godep to update other dependecies (like httprouter, libpq, etc)
  • Manually add your local dependecies back to vendor
  • Commit

But obvioulsy it is not a good way.

solved Godep processing custom packages