Open sethgrid opened 8 years ago
It does, although it's a little janky and doesn't work well with the vendor experiment. We use it internally @ Heroku.
godep save ./... github.com/mattes/migrate
saves both local deps and the main that is github.com/mattes/migrate
.
Janky parts:
vendor/
in that you can't then go install github.com/mattes/migrate
. You have to prefix your local project's package name to it + vendor like so go install github,com/heroku/project/vendor/github.com/mattes/migrate
. This is a limitation of how the vendor/
experiment works. If you are using old style godep workspaces then it's simply godep go install github.com/mattes/migrate
.Does that help?
I'll take a look at that; thanks
We have build tools and scripts. Because godep does not allow for main packages to be vendored, we are faced with a crappy situation: don't vendor or vendor the binary. Checking in a binary is no bueno. To add color here: we run ./bin/whatever.sh. In there, we want to do things like run ffjson or other build helpers. Some (many?) of these build helpers are main packages. I want to vendor them with Godep so I can ensure my build process stays constant. As it stands, I currently have to have
go get blah.blah.blah
in the ./bin/whatever instead of having it in Godep. An option likego save ./... -allow-main
would be super handy.