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

Commit b9d8969

Browse files
committed
add gvt importer integration test and update docs
1 parent a7103ca commit b9d8969

File tree

7 files changed

+72
-2
lines changed

7 files changed

+72
-2
lines changed

cmd/dep/init.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ specified, use the current directory.
2929
When configuration for another dependency management tool is detected, it is
3030
imported into the initial manifest and lock. Use the -skip-tools flag to
3131
disable this behavior. The following external tools are supported:
32-
glide, godep, vndr, govend.
32+
glide, godep, vndr, govend, gvt.
3333
3434
Any dependencies that are not constrained by external configuration use the
3535
GOPATH analysis below.

cmd/dep/testdata/harness_tests/init/gvt/case1/final/Gopkg.lock

Lines changed: 21 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
2+
[[constraint]]
3+
name = "github.com/sdboyer/deptestdos"
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// Copyright 2017 The Go Authors. All rights reserved.
2+
// Use of this source code is governed by a BSD-style
3+
// license that can be found in the LICENSE file.
4+
5+
package main
6+
7+
import (
8+
"fmt"
9+
10+
"github.com/sdboyer/deptestdos"
11+
)
12+
13+
func main() {
14+
var x deptestdos.Bar
15+
fmt.Println(x)
16+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"version": "0",
3+
"dependencies": [
4+
{
5+
"importpath": "github.com/sdboyer/deptest",
6+
"repository": "https://github.com/sdboyer/deptest",
7+
"revision": "3f4c3bea144e112a69bbe5d8d01c1b09a544253f",
8+
"branch": "master"
9+
},
10+
{
11+
"importpath": "github.com/sdboyer/deptestdos",
12+
"repository": "https://github.com/sdboyer/deptestdos",
13+
"revision": "5c607206be5decd28e6263ffffdcee067266015eXXX",
14+
"branch": "master"
15+
}
16+
]
17+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"commands": [
3+
["init", "-no-examples"]
4+
],
5+
"error-expected": "",
6+
"gopath-initial": {
7+
"github.com/sdboyer/deptest": "3f4c3bea144e112a69bbe5d8d01c1b09a544253f"
8+
},
9+
"vendor-final": [
10+
"github.com/sdboyer/deptest",
11+
"github.com/sdboyer/deptestdos"
12+
]
13+
}

docs/FAQ.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ about what's going on.
209209
During `dep init` configuration from other dependency managers is detected
210210
and imported, unless `-skip-tools` is specified.
211211

212-
The following tools are supported: `glide`, `godep`, `vndr` and `govend`.
212+
The following tools are supported: `glide`, `godep`, `vndr`, `govend` and `gvt`.
213213

214214
See [#186](https://github.com/golang/dep/issues/186#issuecomment-306363441) for
215215
how to add support for another tool.

0 commit comments

Comments
 (0)