Skip to content
This repository was archived by the owner on Sep 9, 2020. It is now read-only.
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: golang/dep
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 99aeaae99394c486522cfbbef00045d830572159
Choose a base ref
..
head repository: golang/dep
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 4b8290ece9999776e9de73eba8e6edcbc6dc5ce7
Choose a head ref
Showing with 6 additions and 5 deletions.
  1. +1 −1 cmd/dep/status.go
  2. +3 −3 cmd/dep/status_test.go
  3. +2 −1 docs/FAQ.md
2 changes: 1 addition & 1 deletion cmd/dep/status.go
Original file line number Diff line number Diff line change
@@ -842,7 +842,7 @@ type byProject []projectConstraint

func (p byProject) Len() int { return len(p) }
func (p byProject) Swap(i, j int) { p[i], p[j] = p[j], p[i] }
func (p byProject) Less(i, j int) bool { return p[i].Project > p[j].Project }
func (p byProject) Less(i, j int) bool { return p[i].Project < p[j].Project }

// pubVersion type to store Public Version data of a project.
type pubVersions map[string][]string
6 changes: 3 additions & 3 deletions cmd/dep/status_test.go
Original file line number Diff line number Diff line change
@@ -354,8 +354,8 @@ func TestCollectConstraints(t *testing.T) {
{"github.com/darkowlzz/deptest-project-2", ver1},
},
"github.com/sdboyer/deptest": []projectConstraint{
{"github.com/darkowlzz/deptest-project-2", ver08},
{"github.com/darkowlzz/deptest-project-1", ver1},
{"github.com/darkowlzz/deptest-project-2", ver08},
},
},
},
@@ -524,8 +524,8 @@ func TestProjectStatusString(t *testing.T) {
wantString: `
PROJECT: github.com/x/y
VERSION: v1.0
CONSTRAINTS: ^1.0.0(gh.com/f/b)
^0.5.0(btb.com/x/y)
CONSTRAINTS: ^0.5.0(btb.com/x/y)
^1.0.0(gh.com/f/b)
SOURCE: github.com/x/y
ALT SOURCE: https://github.com/z/y
PUB VERSION: branches: dev, master
3 changes: 2 additions & 1 deletion docs/FAQ.md
Original file line number Diff line number Diff line change
@@ -169,7 +169,8 @@ and configure it inside the [`.netrc` file](https://www.gnu.org/software/inetuti
as the following example:
```
machine github.com
login [YOUR_GITHUB_TOKEN]
   login [YOUR_GITHUB_USERNAME]
password [YOUR_GITHUB_TOKEN]
```

Once you have set that up, dep will automatically use that Token to authenticate to the repositories.