@@ -23,8 +23,8 @@ test('happy inspect', function (t) {
23
23
t . test ( 'root pkg' , function ( t ) {
24
24
t . match ( pkg , {
25
25
name : 'path/to/pkg' ,
26
- version : '0.0.0 ' ,
27
- from : [ 'path/to/pkg@0.0.0 ' ] ,
26
+ version : '' ,
27
+ from : [ 'path/to/pkg@' ] ,
28
28
packageFormatVersion : 'golang:0.0.1' ,
29
29
} , 'root pkg' )
30
30
t . end ( ) ;
@@ -44,7 +44,7 @@ test('happy inspect', function (t) {
44
44
version : '#b6ffb7d62206806b573348160795ea16a00940a6' ,
45
45
} ,
46
46
} ,
47
- from : [ 'path/to/pkg@0.0.0 ' , 'gitpub.com/food/salad@v1.3.7' ] ,
47
+ from : [ 'path/to/pkg@' , 'gitpub.com/food/salad@v1.3.7' ] ,
48
48
} , 'salad depends on tomato and cucamba' ) ;
49
49
50
50
t . match ( deps [ 'gitpub.com/meal/dinner' ] , {
@@ -56,7 +56,7 @@ test('happy inspect', function (t) {
56
56
'gitpub.com/nature/vegetables/tomato' : {
57
57
version : '#b6ffb7d62206806b573348160795ea16a00940a6' ,
58
58
from : [
59
- 'path/to/pkg@0.0.0 ' ,
59
+ 'path/to/pkg@' ,
60
60
'gitpub.com/meal/dinner@v0.0.7' ,
61
61
'gitpub.com/food/salad@v1.3.7' ,
62
62
'gitpub.com/nature/vegetables/tomato@#b6ffb7d62206806b573348160795ea16a00940a6' , // jscs:ignore maximumLineLength
@@ -89,7 +89,7 @@ test('pkg with local import', function (t) {
89
89
90
90
t . test ( 'dependencies' , function ( t ) {
91
91
t . match ( pkg , {
92
- version : '0.0.0 ' ,
92
+ version : '' ,
93
93
dependencies : {
94
94
'gitpub.com/meal/dinner' : {
95
95
version : 'v0.0.7' ,
@@ -100,7 +100,7 @@ test('pkg with local import', function (t) {
100
100
'gitpub.com/nature/vegetables/tomato' : {
101
101
version : '#b6ffb7d62206806b573348160795ea16a00940a6' ,
102
102
from : [
103
- 'path/to/pkg-with-local-import@0.0.0 ' ,
103
+ 'path/to/pkg-with-local-import@' ,
104
104
'gitpub.com/meal/dinner@v0.0.7' ,
105
105
'gitpub.com/food/salad@v1.3.7' ,
106
106
'gitpub.com/nature/vegetables/tomato@#b6ffb7d62206806b573348160795ea16a00940a6' , // jscs:ignore maximumLineLength
@@ -135,7 +135,7 @@ test('pkg with internal subpkg', function (t) {
135
135
136
136
t . test ( 'dependencies' , function ( t ) {
137
137
t . match ( pkg , {
138
- version : '0.0.0 ' ,
138
+ version : '' ,
139
139
dependencies : {
140
140
'gitpub.com/meal/dinner' : {
141
141
version : 'v0.0.7' ,
@@ -146,7 +146,7 @@ test('pkg with internal subpkg', function (t) {
146
146
'gitpub.com/nature/vegetables/tomato' : {
147
147
version : '#b6ffb7d62206806b573348160795ea16a00940a6' ,
148
148
from : [
149
- 'path/to/pkg-with-internal-subpkg@0.0.0 ' ,
149
+ 'path/to/pkg-with-internal-subpkg@' ,
150
150
'gitpub.com/meal/dinner@v0.0.7' ,
151
151
'gitpub.com/food/salad@v1.3.7' ,
152
152
'gitpub.com/nature/vegetables/tomato@#b6ffb7d62206806b573348160795ea16a00940a6' , // jscs:ignore maximumLineLength
@@ -183,8 +183,8 @@ test('multi-root project', function (t) {
183
183
t . test ( 'root pkg' , function ( t ) {
184
184
t . match ( pkg , {
185
185
name : 'path/to/multiroot-pkg' ,
186
- version : '0.0.0 ' ,
187
- from : [ 'path/to/multiroot-pkg@0.0.0 ' ] ,
186
+ version : '' ,
187
+ from : [ 'path/to/multiroot-pkg@' ] ,
188
188
packageFormatVersion : 'golang:0.0.1' ,
189
189
} , 'root pkg' )
190
190
t . end ( ) ;
@@ -204,7 +204,7 @@ test('multi-root project', function (t) {
204
204
version : '#b6ffb7d62206806b573348160795ea16a00940a6' ,
205
205
} ,
206
206
} ,
207
- from : [ 'path/to/multiroot-pkg@0.0.0 ' , 'gitpub.com/food/salad@v1.3.7' ] ,
207
+ from : [ 'path/to/multiroot-pkg@' , 'gitpub.com/food/salad@v1.3.7' ] ,
208
208
} , 'salad depends on tomato and cucamba' ) ;
209
209
210
210
t . match ( deps [ 'gitpub.com/meal/dinner' ] , {
@@ -216,7 +216,7 @@ test('multi-root project', function (t) {
216
216
'gitpub.com/nature/vegetables/tomato' : {
217
217
version : '#b6ffb7d62206806b573348160795ea16a00940a6' ,
218
218
from : [
219
- 'path/to/multiroot-pkg@0.0.0 ' ,
219
+ 'path/to/multiroot-pkg@' ,
220
220
'gitpub.com/meal/dinner@v0.0.7' ,
221
221
'gitpub.com/food/salad@v1.3.7' ,
222
222
'gitpub.com/nature/vegetables/tomato@#b6ffb7d62206806b573348160795ea16a00940a6' , // jscs:ignore maximumLineLength
@@ -276,8 +276,8 @@ test('multi-root project without code at root', function (t) {
276
276
t . test ( 'root pkg' , function ( t ) {
277
277
t . match ( pkg , {
278
278
name : 'path/to/multiroot-pkg-without-root' ,
279
- version : '0.0.0 ' ,
280
- from : [ 'path/to/multiroot-pkg-without-root@0.0.0 ' ] ,
279
+ version : '' ,
280
+ from : [ 'path/to/multiroot-pkg-without-root@' ] ,
281
281
packageFormatVersion : 'golang:0.0.1' ,
282
282
} , 'root pkg' )
283
283
t . end ( ) ;
@@ -298,7 +298,7 @@ test('multi-root project without code at root', function (t) {
298
298
} ,
299
299
} ,
300
300
from : [
301
- 'path/to/multiroot-pkg-without-root@0.0.0 ' ,
301
+ 'path/to/multiroot-pkg-without-root@' ,
302
302
'gitpub.com/food/salad@v1.3.7' ,
303
303
] ,
304
304
} , 'salad depends on tomato and cucamba' ) ;
@@ -312,7 +312,7 @@ test('multi-root project without code at root', function (t) {
312
312
'gitpub.com/nature/vegetables/tomato' : {
313
313
version : '#b6ffb7d62206806b573348160795ea16a00940a6' ,
314
314
from : [
315
- 'path/to/multiroot-pkg-without-root@0.0.0 ' ,
315
+ 'path/to/multiroot-pkg-without-root@' ,
316
316
'gitpub.com/meal/dinner@v0.0.7' ,
317
317
'gitpub.com/food/salad@v1.3.7' ,
318
318
'gitpub.com/nature/vegetables/tomato@#b6ffb7d62206806b573348160795ea16a00940a6' , // jscs:ignore maximumLineLength
@@ -327,7 +327,7 @@ test('multi-root project without code at root', function (t) {
327
327
version : 'v0.0.7' ,
328
328
dependencies : { } ,
329
329
from : [
330
- 'path/to/multiroot-pkg-without-root@0.0.0 ' ,
330
+ 'path/to/multiroot-pkg-without-root@' ,
331
331
'gitpub.com/meal/dinner/desert@v0.0.7' ,
332
332
] ,
333
333
} , 'dinner/desert is a direct dependency' ) ;
@@ -381,8 +381,8 @@ test('no Go code', function (t) {
381
381
t . same ( pkg , {
382
382
name : 'path/to/empty' ,
383
383
dependencies : { } ,
384
- version : '0.0.0 ' ,
385
- from : [ 'path/to/empty@0.0.0 ' ] ,
384
+ version : '' ,
385
+ from : [ 'path/to/empty@' ] ,
386
386
packageFormatVersion : 'golang:0.0.1' ,
387
387
} , 'root pkg' )
388
388
t . end ( ) ;
@@ -515,8 +515,8 @@ test('pkg without external deps', function (t) {
515
515
t . test ( 'pkg' , function ( t ) {
516
516
t . same ( pkg , {
517
517
name : 'path/to/pkg-without-deps' ,
518
- version : '0.0.0 ' ,
519
- from : [ 'path/to/pkg-without-deps@0.0.0 ' ] ,
518
+ version : '' ,
519
+ from : [ 'path/to/pkg-without-deps@' ] ,
520
520
packageFormatVersion : 'golang:0.0.1' ,
521
521
dependencies : { } ,
522
522
} ) ;
@@ -544,8 +544,8 @@ test('happy inspect govendor', function (t) {
544
544
t . test ( 'root pkg' , function ( t ) {
545
545
t . match ( pkg , {
546
546
name : 'path/to/pkg' ,
547
- version : '0.0.0 ' ,
548
- from : [ 'path/to/pkg@0.0.0 ' ] ,
547
+ version : '' ,
548
+ from : [ 'path/to/pkg@' ] ,
549
549
packageFormatVersion : 'golang:0.0.1' ,
550
550
} , 'root pkg' ) ;
551
551
t . end ( ) ;
@@ -565,7 +565,7 @@ test('happy inspect govendor', function (t) {
565
565
version : '#b6ffb7d62206806b573348160795ea16a00940a6' ,
566
566
} ,
567
567
} ,
568
- from : [ 'path/to/pkg@0.0.0 ' , 'gitpub.com/food/salad@v1.3.7' ] ,
568
+ from : [ 'path/to/pkg@' , 'gitpub.com/food/salad@v1.3.7' ] ,
569
569
} , 'salad depends on tomato and cucamba' ) ;
570
570
571
571
t . match ( deps [ 'gitpub.com/meal/dinner' ] , {
@@ -577,7 +577,7 @@ test('happy inspect govendor', function (t) {
577
577
'gitpub.com/nature/vegetables/tomato' : {
578
578
version : '#b6ffb7d62206806b573348160795ea16a00940a6' ,
579
579
from : [
580
- 'path/to/pkg@0.0.0 ' ,
580
+ 'path/to/pkg@' ,
581
581
'gitpub.com/meal/dinner@v0.0.7' ,
582
582
'gitpub.com/food/salad@v1.3.7' ,
583
583
'gitpub.com/nature/vegetables/tomato@#b6ffb7d62206806b573348160795ea16a00940a6' , // jscs:ignore maximumLineLength
@@ -612,8 +612,8 @@ test('inspect govendor with alternate case', function (t) {
612
612
t . test ( 'root pkg' , function ( t ) {
613
613
t . match ( pkg , {
614
614
name : 'path/to/pkg-with-alternate-govendor' ,
615
- version : '0.0.0 ' ,
616
- from : [ 'path/to/pkg-with-alternate-govendor@0.0.0 ' ] ,
615
+ version : '' ,
616
+ from : [ 'path/to/pkg-with-alternate-govendor@' ] ,
617
617
packageFormatVersion : 'golang:0.0.1' ,
618
618
dependencies : {
619
619
'gitpub.com/drink/juice' : {
@@ -639,7 +639,7 @@ test('inspect govendor with alternate case', function (t) {
639
639
} ,
640
640
} ,
641
641
from : [
642
- 'path/to/pkg-with-alternate-govendor@0.0.0 ' ,
642
+ 'path/to/pkg-with-alternate-govendor@' ,
643
643
'gitpub.com/food/salad@v1.3.7' , ] ,
644
644
} , 'salad depends on tomato and cucamba' ) ;
645
645
@@ -652,7 +652,7 @@ test('inspect govendor with alternate case', function (t) {
652
652
'gitpub.com/nature/vegetables/tomato' : {
653
653
version : '#b6ffb7d62206806b573348160795ea16a00940a6' ,
654
654
from : [
655
- 'path/to/pkg-with-alternate-govendor@0.0.0 ' ,
655
+ 'path/to/pkg-with-alternate-govendor@' ,
656
656
'gitpub.com/meal/dinner@v0.0.7' ,
657
657
'gitpub.com/food/salad@v1.3.7' ,
658
658
'gitpub.com/nature/vegetables/tomato@#b6ffb7d62206806b573348160795ea16a00940a6' , // jscs:ignore maximumLineLength
0 commit comments