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 #815 from kyleconroy/govendor-importer
Add importer for govendor
- Loading branch information
Showing
18 changed files
with
467 additions
and
21 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
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 @@ | ||
Import govendor config in vendor dir. |
21 changes: 21 additions & 0 deletions
21
cmd/dep/testdata/harness_tests/init/govendor/case1/final/Gopkg.lock
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
5 changes: 5 additions & 0 deletions
5
cmd/dep/testdata/harness_tests/init/govendor/case1/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,5 @@ | ||
ignored = ["github.com/golang/notexist/samples*","github.com/sdboyer/dep-test*"] | ||
|
||
[[constraint]] | ||
name = "github.com/sdboyer/deptestdos" | ||
version = "2.0.0" |
16 changes: 16 additions & 0 deletions
16
cmd/dep/testdata/harness_tests/init/govendor/case1/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,16 @@ | ||
// Copyright 2017 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 ( | ||
"fmt" | ||
|
||
"github.com/sdboyer/deptestdos" | ||
) | ||
|
||
func main() { | ||
var x deptestdos.Bar | ||
fmt.Println(x) | ||
} |
12 changes: 12 additions & 0 deletions
12
cmd/dep/testdata/harness_tests/init/govendor/case1/initial/samples/samples.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 samples | ||
|
||
import dt "github.com/carolynvs/go-dep-test" | ||
|
||
func Sample1() int { | ||
var x = dt.Thing | ||
return x | ||
} |
21 changes: 21 additions & 0 deletions
21
cmd/dep/testdata/harness_tests/init/govendor/case1/initial/vendor/vendor.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,21 @@ | ||
{ | ||
"comment": "", | ||
"ignore": "test github.com/sdboyer/dep-test samples/", | ||
"package": [ | ||
{ | ||
"checksumSHA1": "4R6TQcq0/gI/I2kKeUunuO/pEec=", | ||
"path": "github.com/sdboyer/deptest", | ||
"revision": "3f4c3bea144e112a69bbe5d8d01c1b09a544253f", | ||
"revisionTime": "2017-02-22T03:31:47Z" | ||
}, | ||
{ | ||
"checksumSHA1": "96YwrJjpE07ENey/eDWWnCWKQOw=", | ||
"path": "github.com/sdboyer/deptestdos", | ||
"revision": "5c607206be5decd28e6263ffffdcee067266015e", | ||
"revisionTime": "2017-02-22T03:34:58Z", | ||
"version": "v2", | ||
"versionExact": "v2.0.0" | ||
} | ||
], | ||
"rootPath": "github.com/golang/notexist" | ||
} |
14 changes: 14 additions & 0 deletions
14
cmd/dep/testdata/harness_tests/init/govendor/case1/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,14 @@ | ||
{ | ||
"commands": [ | ||
["init", "-no-examples", "-gopath"] | ||
], | ||
"error-expected": "", | ||
"gopath-initial": { | ||
"github.com/sdboyer/deptest": "3f4c3bea144e112a69bbe5d8d01c1b09a544253f", | ||
"github.com/sdboyer/deptestdos": "5c607206be5decd28e6263ffffdcee067266015e" | ||
}, | ||
"vendor-final": [ | ||
"github.com/sdboyer/deptest", | ||
"github.com/sdboyer/deptestdos" | ||
] | ||
} |
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
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
Oops, something went wrong.