How do you use go vendoring. It is written many places that 1.6 now include vendoring, but I can not find any documentation?
When use go get
, I see no vendor folder?
I just need to be able to control packages like npm, apt etc.
As of 1.5 (with a flag) and 1.6 by default the go tools will look in the vendor
folder for dependant packages before your GOPATH
, for specifics see the design doc
But the go tools do not include tooling to populate that folder for you.
There are many tools that try to handle it for you, for example Godep, gvt and others.
You still need to use go get
to get the packages into your GOPATH
first.