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

Commit 98f625e

Browse files
authored
Merge pull request #1156 from darkowlzz/recursive-ignore
Wildcard ignores
2 parents 07298e2 + 276ead9 commit 98f625e

File tree

18 files changed

+420
-2
lines changed

18 files changed

+420
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
NEW FEATURES:
44

5+
* Wildcard ignore support. (#1156)
56
* Disable SourceManager lock by setting `DEPNOLOCK` environment variable.
67
(#1206)
78

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

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

cmd/dep/testdata/harness_tests/ensure/pkg-ignored/wildcard-ignore/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: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
ignored = ["github.com/golang/notexist/samples*"]
2+
3+
[[constraint]]
4+
branch = "master"
5+
name = "github.com/sdboyer/deptest"
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"
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 subsamples
6+
7+
import _ "github.com/sdboyer/dep-test"
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"commands": [
3+
["ensure"]
4+
],
5+
"error-expected": "",
6+
"vendor-final": [
7+
"github.com/sdboyer/deptest"
8+
]
9+
}

docs/Gopkg.toml.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@ You might also try [virtualgo](https://github.com/GetStream/vg), which installs
3636
ignored = ["github.com/user/project/badpkg"]
3737
```
3838

39+
Use wildcard character (*) to define a package prefix to be ignored. Use this
40+
to ignore any package and their subpackages.
41+
```toml
42+
ignored = ["github.com/user/project/badpkg*"]
43+
```
44+
3945
**Use this for:** preventing a package and any of that package's unique
4046
dependencies from being installed.
4147

0 commit comments

Comments
 (0)