Go dependency management tool experiment (deprecated)
Перейти к файлу
sam boyer 935bdd0ddd Use generated semver string if orig is empty 2016-09-02 18:40:07 -04:00
_testdata/src Fix disallowed test, now that dots are out again 2016-07-13 17:51:39 -04:00
.gitignore Remove and ignore vendor dir 2016-04-01 11:34:25 -04:00
CODE_OF_CONDUCT.md Add COC and CONTRIBUTING.md 2016-07-12 01:33:17 -04:00
CONTRIBUTING.md s/vsolver/gps/g 2016-07-12 14:56:12 -04:00
LICENSE Initial commit 2016-03-14 23:33:42 -04:00
README.md Merge branch 'url-separation' 2016-08-15 22:30:01 -04:00
analysis.go Touch up some docblocks 2016-08-19 11:03:11 -04:00
analysis_test.go Fix disallowed test, now that dots are out again 2016-07-13 17:51:39 -04:00
appveyor.yml hg should already be available on appveyor 2016-08-15 15:20:06 -04:00
bridge.go Rearrange and export version slice sorters 2016-08-30 20:43:18 -04:00
circle.yml Just freakin cd in 2016-07-28 21:14:05 -04:00
codecov.yml Ignore discovery.go in code coverage 2016-08-19 08:48:30 -04:00
constraint_test.go s/vsolver/gps/g 2016-07-12 14:56:12 -04:00
constraints.go Simplify new semver constraints if possible 2016-08-27 22:37:18 -04:00
deduce.go Fix gopkg.in deducer implementation 2016-08-15 20:42:58 -04:00
deduce_test.go Vanity import deduction tests 2016-08-15 21:45:27 -04:00
discovery.go s/vsolver/gps/g 2016-07-12 14:56:12 -04:00
example.go s/CreateVendorTree/WriteDepTree/ 2016-08-15 22:40:54 -04:00
flags.go Move vcs source subtypes into their own file 2016-08-03 14:20:15 -04:00
glide.lock Fix weird values in glide.lock 2016-06-07 00:07:57 -04:00
glide.yaml Update to latest nouveau glide.yaml format 2016-09-02 11:02:39 -04:00
hash.go Have sourceBridge compose SourceManager 2016-07-27 22:37:43 -04:00
hash_test.go Incorporate overrides into input hashing 2016-07-27 12:25:08 -04:00
header.png Update README with goodies 2016-07-28 21:58:12 -04:00
import_mode_go15.go s/vsolver/gps/g 2016-07-12 14:56:12 -04:00
import_mode_go16.go s/vsolver/gps/g 2016-07-12 14:56:12 -04:00
lock.go Add SortLockedProjects helper func 2016-09-02 12:09:00 -04:00
lock_test.go Add SortLockedProjects helper func 2016-09-02 12:09:00 -04:00
manager_test.go Rearrange and export version slice sorters 2016-08-30 20:43:18 -04:00
manifest.go More assorted renamings 2016-07-26 23:15:48 -04:00
maybe_source.go Populate baseVCSSource.lvfunc 2016-08-15 20:45:15 -04:00
remove_go16.go s/vsolver/gps/g 2016-07-12 14:56:12 -04:00
remove_go17.go s/vsolver/gps/g 2016-07-12 14:56:12 -04:00
result.go Guard against nil Lock in WriteDepTree 2016-09-02 11:54:18 -04:00
result_test.go Guard against nil Lock in WriteDepTree 2016-09-02 11:54:18 -04:00
satisfy.go Have sourceBridge compose SourceManager 2016-07-27 22:37:43 -04:00
selection.go Fold select methods into selectAtom() 2016-07-20 23:10:29 -04:00
solve_basic_test.go SourceManager.SyncSourceFor(), source.syncLocal() 2016-08-17 22:41:59 -04:00
solve_bimodal_test.go Buncha type renames; short tests now passing again 2016-07-29 00:47:32 -04:00
solve_failures.go Rename errors.go to make space for sm errors 2016-07-27 20:49:31 -04:00
solve_test.go Buncha type renames; short tests now passing again 2016-07-29 00:47:32 -04:00
solver.go Touch up some docblocks 2016-08-19 11:03:11 -04:00
source.go SourceManager.SyncSourceFor(), source.syncLocal() 2016-08-17 22:41:59 -04:00
source_manager.go SourceManager.SyncSourceFor(), source.syncLocal() 2016-08-17 22:41:59 -04:00
source_test.go Rearrange and export version slice sorters 2016-08-30 20:43:18 -04:00
trace.go Basically overhaul tracing 2016-07-21 16:11:37 -04:00
typed_radix.go Add typed radix trie for project roots 2016-08-13 23:20:33 -04:00
types.go Touch up some docblocks 2016-08-19 11:03:11 -04:00
vcs_source.go More crufty code removal 2016-08-15 22:26:01 -04:00
version.go Use generated semver string if orig is empty 2016-09-02 18:40:07 -04:00
version_queue.go Have sourceBridge compose SourceManager 2016-07-27 22:37:43 -04:00
version_test.go Rearrange and export version slice sorters 2016-08-30 20:43:18 -04:00

README.md

gps
Build Status Windows Build Status Build Status Codecov GoDoc

--

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.

Wait...a package management library?!

Yup. See the rationale.

Features

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.

Non-Choices

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.

  • Go >=1.6, or 1.5 with GO15VENDOREXPERIMENT = 1 set
  • Everything under vendor/ is volatile and controlled solely by the tool
  • A central cache of repositories is used (cannot be GOPATH)
  • A project concept: a tree of packages, all covered by one vendor directory
  • A manifest and lock approach to tracking version and constraint information
  • Source repositories can be git, bzr, hg or svn (Most of the work here is through a separate lib)
  • What the available versions are for a given project/repository (all branches, tags, or revs are eligible)
    • In general, semver tags are preferred to plain tags, are preferred to branches
  • The actual packages required (determined through import graph static analysis)
    • How the import graph is statically analyzed (Similar to go/build, but with a combinatorial view of build tags)
  • Package import cycles are not allowed (not yet implemented)

There are also some current non-choices that we would like to push into the realm of choice:

  • Different versions of packages from the same repository cannot be used
  • Importable projects that are not bound to the repository root
  • Source inference around different import path patterns (e.g., how github.com/* or my_company/* are handled)

Choices

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.

This list may not be exhaustive - see the implementor's guide for a proper treatment.

Contributing

Yay, contributing! Please see CONTRIBUTING.md. Note that gps also abides by a Code of Conduct, and is MIT-licensed.