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

Commit

Permalink
Skip importing from external tools in non-import tests
Browse files Browse the repository at this point in the history
  • Loading branch information
carolynvs committed Jun 1, 2017
1 parent cbc263f commit 6f7a9d3
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 11 deletions.
3 changes: 1 addition & 2 deletions cmd/dep/root_analyzer.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,7 @@ func (a *rootAnalyzer) Info() (string, int) {
name := "dep"
version := 1
if !a.skipTools {
// TODO(carolynvs): Before merging this PR #500, uncomment and update testdata memos
//name = "dep+import"
name = "dep+import"
}
return name, version
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"commands": [
["init"],
["init", "-skip-tools"],
["ensure", "-update"]
],
"error-expected": "",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"commands": [
["init"],
["init", "-skip-tools"],
["ensure", "-override", "github.com/sdboyer/deptest@=1.0.0"]
],
"error-expected": "",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"commands": [
["init", "-no-examples"],
["init", "-no-examples", "-skip-tools"],
["ensure", "-update"]
],
"error-expected": "all dirs lacked any go code",
Expand Down
2 changes: 1 addition & 1 deletion cmd/dep/testdata/harness_tests/init/case1/testcase.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"commands": [
["init", "-no-examples"]
["init", "-no-examples", "-skip-tools"]
],
"error-expected": "",
"gopath-initial": {
Expand Down
2 changes: 1 addition & 1 deletion cmd/dep/testdata/harness_tests/init/case2/testcase.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"commands": [
["init", "-no-examples"]
["init", "-no-examples", "-skip-tools"]
],
"error-expected": "",
"gopath-initial": {
Expand Down
2 changes: 1 addition & 1 deletion cmd/dep/testdata/harness_tests/init/case3/testcase.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"commands": [
["init", "-no-examples"]
["init", "-no-examples", "-skip-tools"]
],
"error-expected": "",
"gopath-initial": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"commands": [
["init", "-no-examples"]
["init", "-no-examples", "-skip-tools"]
],
"error-expected": "",
"vendor-final": [
Expand Down
4 changes: 2 additions & 2 deletions cmd/dep/testdata/init_path_tests/relative_path/testcase.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"commands": [
["init", "project_dir"]
["init", "-skip-tools", "project_dir"]
],
"error-expected": "",
"init-path": "project_dir"

}

0 comments on commit 6f7a9d3

Please sign in to comment.