This repository has been archived by the owner on Sep 9, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1421 from otoolec/status-revision-constraint
Fix how dep status print revision constraints
- Loading branch information
Showing
9 changed files
with
82 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
cmd/dep/testdata/harness_tests/status/revision_constraint/final/Gopkg.lock
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
cmd/dep/testdata/harness_tests/status/revision_constraint/final/Gopkg.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[[constraint]] | ||
name = "github.com/sdboyer/deptestdos" | ||
revision = "a0196baa11ea047dd65037287451d36b861b00ea" |
20 changes: 20 additions & 0 deletions
20
cmd/dep/testdata/harness_tests/status/revision_constraint/initial/Gopkg.lock
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
cmd/dep/testdata/harness_tests/status/revision_constraint/initial/Gopkg.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[[constraint]] | ||
name = "github.com/sdboyer/deptestdos" | ||
revision = "a0196baa11ea047dd65037287451d36b861b00ea" |
12 changes: 12 additions & 0 deletions
12
cmd/dep/testdata/harness_tests/status/revision_constraint/initial/main.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// Copyright 2016 The Go Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style | ||
// license that can be found in the LICENSE file. | ||
|
||
package main | ||
|
||
import ( | ||
_ "github.com/sdboyer/deptestdos" | ||
) | ||
|
||
func main() { | ||
} |
3 changes: 3 additions & 0 deletions
3
cmd/dep/testdata/harness_tests/status/revision_constraint/stdout.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
PROJECT CONSTRAINT VERSION REVISION LATEST PKGS USED | ||
github.com/sdboyer/deptest v1.0.0 v1.0.0 ff2948a ff2948a 1 | ||
github.com/sdboyer/deptestdos a0196ba a0196ba 1 |
11 changes: 11 additions & 0 deletions
11
cmd/dep/testdata/harness_tests/status/revision_constraint/testcase.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"commands": [ | ||
["ensure"], | ||
["status"] | ||
], | ||
"error-expected": "", | ||
"vendor-final": [ | ||
"github.com/sdboyer/deptest", | ||
"github.com/sdboyer/deptestdos" | ||
] | ||
} |