3 ms·
Excuse my ignorance but does Go store libraries locally, in the way other package managers like NPM and Pip do? I just looked at some Go source code and it ref
by siquick 8y ago
Excuse my ignorance but does Go store libraries locally, in the way other package managers like NPM and Pip do?
I just looked at some Go source code and it references Github repos?
e.g.
> import "github.com/astaxie/beego"
Can I clone that repo into local and then import that? I wouldn't like to run a project at the mercy of someone elses remote repo.
- stephenwithav 8y agoYou have to use a vendoring tool like Glide[1] for now, but Go is actively testing official vendoring support with vgo[2], where you use git tags for versions. 1. https://glide.sh/ https://glide.sh/ 2. https://github.com/golang/go/wiki/PackageManagementTools https://github.com/golang/go/wiki/PackageManagementTools