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

Commit 44539c3

Browse files
carolynvskrisnova
authored andcommitted
Add test case for ignored packages
Validate that packages imported in an ignored package are not included in the manifest or lock.
1 parent ceb4ac6 commit 44539c3

File tree

8 files changed

+53
-0
lines changed

8 files changed

+53
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Validate that packages imported in an ignored package are not
2+
included in the manifest or lock.

cmd/dep/testdata/harness_tests/ensure/empty/case3/final/Gopkg.lock

Lines changed: 7 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/sdboyer/deptestdos"]
2+
3+
[[dependencies]]
4+
branch = "master"
5+
name = "github.com/sdboyer/deptest"

cmd/dep/testdata/harness_tests/ensure/empty/case3/initial/Gopkg.lock

Lines changed: 7 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/sdboyer/deptestdos"]
2+
3+
[[dependencies]]
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 2016 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 2016 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: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"commands": [
3+
["ensure"]
4+
],
5+
"vendor-final": [
6+
"github.com/sdboyer/deptest"
7+
]
8+
}

0 commit comments

Comments
 (0)