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

Commit 31dfa52

Browse files
authored
Merge pull request #1268 from sdboyer/ignore-trie
Introduce IgnoredRuleset
2 parents 7d9726b + da9b750 commit 31dfa52

File tree

29 files changed

+463
-333
lines changed

29 files changed

+463
-333
lines changed

cmd/dep/integration_test.go

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,12 @@ func testIntegration(name, relPath, wd string, run integration.RunFunc) func(t *
123123
// Check error raised in final command
124124
testCase.CompareError(err, testProj.GetStderr())
125125

126-
// Check output
127-
testCase.CompareOutput(testProj.GetStdout())
126+
if *test.UpdateGolden {
127+
testCase.UpdateOutput(testProj.GetStdout())
128+
} else {
129+
// Check output
130+
testCase.CompareOutput(testProj.GetStdout())
131+
}
128132

129133
// Check vendor paths
130134
testProj.CompareImportPaths()

cmd/dep/testdata/harness_tests/ensure/pkg-ignored/wildcard-ignore/final/Gopkg.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
-CONSTRAINTS-
2+
github.com/sdboyer/deptest
3+
b-master
4+
-IMPORTS/REQS-
5+
github.com/sdboyer/deptest
6+
-IGNORES-
7+
-OVERRIDES-
8+
-ANALYZER-
9+
dep
10+
1
11+

cmd/dep/testdata/harness_tests/ensure/pkg-ignored/wildcard-ignore/testcase.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"commands": [
3-
["ensure"]
3+
["ensure"],
4+
["hash-inputs"]
45
],
56
"error-expected": "",
67
"vendor-final": [

cmd/dep/testdata/harness_tests/ensure/pkg-ignored/wildcard-other-root/final/Gopkg.lock

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ignored = ["github.com/sdboyer/deptest*", "github.com/golang/notexist/samples*"]

cmd/dep/testdata/harness_tests/ensure/pkg-ignored/wildcard-other-root/initial/Gopkg.lock

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ignored = ["github.com/sdboyer/deptest*", "github.com/golang/notexist/samples*"]
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
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+
_ "github.com/sdboyer/deptest"
9+
)
10+
11+
func main() {
12+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
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 samples
6+
7+
import _ "github.com/sdboyer/deptestdos"

0 commit comments

Comments
 (0)