Skip to content
Run go packages from the vendor folder
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


Slightly lazy shell script to build, cache, and execute binaries stored in your Golang projects vendor folder.


  curl -o /usr/local/bin/runvendor
  chmod +x /usr/local/bin/runvendor


Add a constraint to Gopkg.toml, for example lets use Ginkgo.

  required = [""]

Then you can add the following to either a Makefile or go generate to run ginkgo. runvendor will generate a binary and keep it cached in your vendor folder.

  runvendor -v -r .

If you commit your vendor folder, I'd recommend adding the .bin to your .gitignore.

  echo "vendor/.bin/" >> .gitignore
You can’t perform that action at this time.