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

Commit 6f7a9d3

Browse files
committed
Skip importing from external tools in non-import tests
1 parent cbc263f commit 6f7a9d3

File tree

9 files changed

+10
-11
lines changed

9 files changed

+10
-11
lines changed

cmd/dep/root_analyzer.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,7 @@ func (a *rootAnalyzer) Info() (string, int) {
136136
name := "dep"
137137
version := 1
138138
if !a.skipTools {
139-
// TODO(carolynvs): Before merging this PR #500, uncomment and update testdata memos
140-
//name = "dep+import"
139+
name = "dep+import"
141140
}
142141
return name, version
143142
}

cmd/dep/testdata/harness_tests/ensure/empty/case1/testcase.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"commands": [
3-
["init"],
3+
["init", "-skip-tools"],
44
["ensure", "-update"]
55
],
66
"error-expected": "",

cmd/dep/testdata/harness_tests/ensure/override/case1/testcase.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"commands": [
3-
["init"],
3+
["init", "-skip-tools"],
44
["ensure", "-override", "github.com/sdboyer/deptest@=1.0.0"]
55
],
66
"error-expected": "",

cmd/dep/testdata/harness_tests/ensure/pkg-errors/case1/testcase.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"commands": [
3-
["init", "-no-examples"],
3+
["init", "-no-examples", "-skip-tools"],
44
["ensure", "-update"]
55
],
66
"error-expected": "all dirs lacked any go code",

cmd/dep/testdata/harness_tests/init/case1/testcase.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"commands": [
3-
["init", "-no-examples"]
3+
["init", "-no-examples", "-skip-tools"]
44
],
55
"error-expected": "",
66
"gopath-initial": {

cmd/dep/testdata/harness_tests/init/case2/testcase.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"commands": [
3-
["init", "-no-examples"]
3+
["init", "-no-examples", "-skip-tools"]
44
],
55
"error-expected": "",
66
"gopath-initial": {

cmd/dep/testdata/harness_tests/init/case3/testcase.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"commands": [
3-
["init", "-no-examples"]
3+
["init", "-no-examples", "-skip-tools"]
44
],
55
"error-expected": "",
66
"gopath-initial": {

cmd/dep/testdata/harness_tests/init/skip-hidden/testcase.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"commands": [
3-
["init", "-no-examples"]
3+
["init", "-no-examples", "-skip-tools"]
44
],
55
"error-expected": "",
66
"vendor-final": [
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"commands": [
3-
["init", "project_dir"]
3+
["init", "-skip-tools", "project_dir"]
44
],
5+
"error-expected": "",
56
"init-path": "project_dir"
6-
77
}

0 commit comments

Comments
 (0)