I'm writing a project in Go to be deployed on heroku, managing dependencies with godep.
When I godep save
, I get both a Godeps.json
file listing my dependencies with versions and an _workspace/
directory with the source for all dependencies copied in. I'd rather not commit _workspace
, all that code's already on github elsewhere. It seems Godeps.json
has all the information we need to go get
the version locked dependencies at heroku buildpack time.
Several sources recommend committing the full Godeps/
directory, but others suggest it might not be necessary.
The godep docs aren't much help:
This will save a list of dependencies to the file Godeps/Godeps.json, and copy their source code into Godeps/_workspace. Read over its contents and make sure it looks reasonable. Then commit the file to version control.
Is Godeps.json the file?