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

Commit 61b8954

Browse files
committed
Several more ensure -add tests
1 parent 9707806 commit 61b8954

File tree

20 files changed

+97
-33
lines changed

20 files changed

+97
-33
lines changed

cmd/dep/testdata/harness_tests/ensure/add/nonroot-arg/initial/Gopkg.lock renamed to cmd/dep/testdata/harness_tests/ensure/add/exists-imports/final/Gopkg.lock

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

cmd/dep/testdata/harness_tests/ensure/add/exists-imports/initial/Gopkg.toml

Whitespace-only changes.
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
// Copyright 2016 The Go Authors. All rights reserved.
1+
// Copyright 2017 The Go Authors. All rights reserved.
22
// Use of this source code is governed by a BSD-style
33
// license that can be found in the LICENSE file.
44

55
package main
66

77
import (
8-
"github.com/sdboyer/deptest"
8+
"github.com/sdboyer/deptesttres"
99
)
1010

1111
func main() {
12-
_ := deptest.Map["yo yo!"]
12+
type a deptesttres.Bar
1313
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"commands": [
3+
["ensure", "-add", "github.com/sdboyer/deptesttres@master"]
4+
],
5+
"vendor-final": [
6+
"github.com/sdboyer/deptesttres"
7+
]
8+
}

cmd/dep/testdata/harness_tests/ensure/add/nonroot-arg/final/Gopkg.lock renamed to cmd/dep/testdata/harness_tests/ensure/add/exists-manifest-constraint/final/Gopkg.lock

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

cmd/dep/testdata/harness_tests/ensure/add/exists-manifest-constraint/initial/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: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[[constraint]]
2+
name = "github.com/sdboyer/deptesttres"
3+
branch = "master"
4+
5+
[[constraint]]
6+
name = "github.com/sdboyer/deptest"
7+
version = "1.0.0"
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
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/deptesttres"
9+
)
10+
11+
func main() {
12+
type a deptesttres.Bar
13+
}

0 commit comments

Comments
 (0)