LinuxCzar

Engineering Software, Linux, and Operations. The website of Jack Neely.    

Go Vendoring with Git Subtree

In Go 1.5 we have the beginings of vendoring support. The easiest way to incorperate other projects into your Git repo is by using the following command. Short and dirty, but it works:

$ git subtree add --prefix vendor/gopkg.in/check.v1  \
    https://gopkg.in/check.v1 master --squash

Being that I wont remember the command, its now here in the blog. Also, don’t forget to set your environment:

$ export GO15VENDOREXPERIMENT=1

 Previous  Up  Next


comments powered by Disqus