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

Commit 5ac982a

Browse files
committed
feat(gb): update test fixtures for gb importer
1 parent 0cf51a3 commit 5ac982a

File tree

5 files changed

+40
-9
lines changed

5 files changed

+40
-9
lines changed

cmd/dep/testdata/gb/golden.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
Detected gb manifest file...
22
Converting from gb manifest...
3-
Using ^2.0.0 as initial constraint for imported dep github.com/sdboyer/deptestdos
3+
Using master as initial constraint for imported dep github.com/sdboyer/deptestdos
44
Trying v2.0.0 (5c60720) as initial lock for imported dep github.com/sdboyer/deptestdos
55
Using ^1.0.0 as initial constraint for imported dep github.com/sdboyer/deptest
66
Trying v1.0.0 (ff2948a) as initial lock for imported dep github.com/sdboyer/deptest
7+
Using master as initial constraint for imported dep github.com/carolynvs/deptest
8+
Trying v2 (4982dd1) as initial lock for imported dep github.com/carolynvs/deptest
9+
Using master as initial constraint for imported dep github.com/carolynvs/deptest-subpkg
10+
Trying master (b90e5f3) as initial lock for imported dep github.com/carolynvs/deptest-subpkg

cmd/dep/testdata/harness_tests/init/gb/case1/final/Gopkg.lock

Lines changed: 17 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cmd/dep/testdata/harness_tests/init/gb/case1/final/Gopkg.toml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,20 @@
11

2+
[[constraint]]
3+
branch = "master"
4+
name = "github.com/carolynvs/deptest"
5+
source = "https://github.com/carolynvs/deptest"
6+
7+
[[constraint]]
8+
branch = "master"
9+
name = "github.com/carolynvs/deptest-subpkg"
10+
source = "https://github.com/carolynvs/deptest-subpkg"
11+
212
[[constraint]]
313
name = "github.com/sdboyer/deptest"
414
source = "https://github.com/sdboyer/deptest"
515
version = "1.0.0"
616

717
[[constraint]]
18+
branch = "master"
819
name = "github.com/sdboyer/deptestdos"
920
source = "https://github.com/sdboyer/deptestdos"
10-
version = "2.0.0"

cmd/dep/testdata/harness_tests/init/gb/case1/initial/src/gbtest/main.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,15 @@
55
package main
66

77
import (
8-
"fmt"
9-
8+
cdt "github.com/carolynvs/deptest"
9+
"github.com/carolynvs/deptest-subpkg/subby"
1010
"github.com/sdboyer/deptest"
1111
"github.com/sdboyer/deptestdos"
1212
)
1313

1414
func main() {
15-
var x deptestdos.Bar
15+
_ = deptestdos.Bar{}
1616
_ = deptest.Foo{}
17-
fmt.Println(x)
17+
_ = cdt.Foo{}
18+
_ = subby.SayHi()
1819
}

cmd/dep/testdata/harness_tests/init/gb/case1/testcase.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
"github.com/sdboyer/deptest": "3f4c3bea144e112a69bbe5d8d01c1b09a544253f"
88
},
99
"vendor-final": [
10+
"github.com/carolynvs/deptest",
11+
"github.com/carolynvs/deptest-subpkg",
1012
"github.com/sdboyer/deptest",
1113
"github.com/sdboyer/deptestdos"
1214
]

0 commit comments

Comments
 (0)