gps is the Go Packaging Solver. It is an engine for tackling dependency management problems in Go. It is trivial - about 35 lines of code - to replicate the fetching bits of go get using gps.
gps is not Yet Another Go Package Management Tool. Rather, it‘s a library that package management (and adjacent) tools can use to solve the hard parts of the problem in a consistent, holistic way. It is a distillation of the ideas behind language package managers like bundler, npm, elm-package, cargo (and others) into a library, artisanally handcrafted with ❤️ for Go’s specific requirements.
gps is on track to become the engine behind glide.
The wiki has a general introduction to the gps approach, as well as guides for folks implementing tools or looking to contribute.
gps is progressing rapidly, but still in beta, with a concomitantly liberal sprinkling of panics.
Yup. See the rationale.
A feature list for a package management library is a bit different than one for a package management tool. Instead of listing the things an end-user can do, we list the choices a tool can make and offer, in some form, to its users, as well as the non-choices/assumptions/constraints that gps imposes on a tool.
We'd love for gps‘s non-choices to be noncontroversial. But that’s not always the case.
Nevertheless, these non-choices remain because, taken as a whole, they make experiments and discussion around Go package management coherent and productive.
GO15VENDOREXPERIMENT = 1 setvendor/ is volatile and controlled solely by the toolGOPATH)vendor directorygit, bzr, hg or svn repositoriesgo/build, but with a combinatorial view of build tags)There are also some current non-choices that we would like to push into the realm of choice:
github.com/* or my_company/* are handled)These choices represent many of the ways that gps-based tools could substantively differ from each other.
Some of these are choices designed to encompass all options for topics on which reasonable people have disagreed. Others are simply important controls that no general library could know a priori.
vendor directoriesThis list may not be exhaustive - see the implementor's guide for a proper treatment.
Yay, contributing! Please see CONTRIBUTING.md. Note that gps also abides by a Code of Conduct, and is MIT-licensed.