• This repository has been archived on 03/Feb/2018
  • Stars
    star
    270
  • Rank 152,189 (Top 3 %)
  • Language
    Go
  • License
    MIT License
  • Created over 8 years ago
  • Updated about 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

your dependencies have arrived

gps
Build Status Windows Build Status Build Status Codecov GoDoc


gps has moved into dep - this repository is no longer maintained.

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 was on track to become the engine behind glide; however, those efforts have been discontinued in favor of gps powering the experimental, eventually-official Go tooling.

The wiki has a general introduction to the gps approach, as well as guides for folks implementing tools or looking to contribute.

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
  • Upstream sources are one of git, bzr, hg or svn repositories
  • What the available versions are for a given project/repository (all branches, tags, or revs are eligible)
    • In general, semver tags are preferred to branches, are preferred to plain tags
  • The actual packages that must be present (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 (not yet implemented)
  • All packages from the same source (repository) must be the same version
  • 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:

  • 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.

More Repositories

1

gliph

A graph library for PHP.
PHP
170
star
2

gogl

A graph library in Go
Go
77
star
3

dear_github_can_i_go_home_now

FOR GREAT JUSTICE
Ruby
51
star
4

transducers-go

Transducers for Go
Go
47
star
5

drupal-git-scripts

A collection of scripts to facilitate easy interoperation between a local git workflow and drupal contrib CVS
38
star
6

constext

ctx = Cons(ctx1, ctx2)
Go
22
star
7

svnlib

a php wrapper for invoking the svn binary
PHP
19
star
8

drupalorg-git

the official scripts used to migrate drupal.org's CVS repository to git
PHP
16
star
9

gta

Gotta test 'em all
Go
16
star
10

ctools

cvs2git-based port of drupal ctools for the d7 port sprint
PHP
14
star
11

gitrd

A daemon for all your git serving needs
Go
12
star
12

panels

cvs2git-based port of drupal panels for the d7 port sprint
PHP
7
star
13

tbsp

run your table-based tests with Go 1.7 subtests
Go
5
star
14

frozone

Helpers to manage PHP object state
PHP
5
star
15

versioncontrol

mirror of drupal versioncontrol api
PHP
4
star
16

versioncontrol_git

mirror of drupal versioncontrol api, git backend
PHP
3
star
17

cuerious

but wait so like how does CUE work again?
Go
3
star
18

php_microbench

A small PHP microbenchmarking framework
PHP
3
star
19

cligit

a php wrapper for invoking git cli commands
PHP
2
star
20

sdboyer-test

initial test repo for sdboyer
PHP
2
star
21

netanalysis

preliminary work on drupal-based network analysis
2
star
22

mock_druplatform_api

Go
1
star
23

drupal-c2g

Drupal core migration using cvs2git
PHP
1
star
24

fatlazy

JavaScript
1
star
25

grpchc

Standard gRPC health checks from the CLI
1
star
26

jpgprog

because @ericduran tricked me into it
Go
1
star
27

sdboyer.io

HTML
1
star
28

collaboration_test

PHP
1
star
29

drupal

My working fork of D8
PHP
1
star
30

pharnish

PHP interface to Varnish management
1
star
31

testpusher

testing how github handles --mirror pushes
1
star
32

intmap

Go
1
star
33

testing_your_helptext

because ur cool, github
1
star
34

memoize

Go
1
star
35

drupal-git-everywhere-example

An example repository demonstrating how to build a Drupal site using Git everywhere. Git FTW
PHP
1
star