A: Run govendor test +local
.
A: Run govendor install +vendor,^program
.
A: Run govendor fetch +out
.
A: Run govendor add +external
.
A: Run govendor update +vendor
.
Q: I'm getting missing packages from appengine
but I don't care about appengine
. How do I ignore these packages?
A: Edit the vendor/vendor.json
file. Update the "ignore" field to include "appengine".
If you are already ignoring tests, it will look like: "ignore": "test appengine",
.
Q: I have modified a package in $GOPATH and I want to try the changes in vendor without committing them.
A: Run govendor update -uncommitted <updated-package-import-path>
.
A: Assuming you've pushed your changes to an accessable repository, run
govendor fetch github.com/normal/pkg::github.com/myfork/pkg
. This will
fetch from "myfork" but place package in "normal".
A: Run either govendor fetch github.com/dep/pkg/^
or govendor add github.com/dep/pkg/^
.
This is the same as using the -tree
argument.
A: Add vendor/*/
to your ignore file.
A: Run govendor sync
.