@@ -24,9 +24,10 @@ Paths:
24
24
* Packages can specified in at the beginning of a path with a ` : ` seperator.
25
25
github.com/markbates/pkger:/cmd/pkger/main.go
26
26
* There are no relative paths. All paths are absolute to the modules root.
27
+ * Fully-qualified paths are embedded into the metadata of your static assets. If this behavior is undesirable, a preference is to build in a containerized environ, like docker, where the path strings are not ex-filtrating data about your development environment.
27
28
28
29
```
29
- "github.com/gobuffalo/buffalo:/go.mod" => $GOPATH /pkg/mod/github.com/gobuffalo/[email protected] /go.mod
30
+ "github.com/gobuffalo/buffalo:/go.mod" => /go /pkg/mod/github.com/gobuffalo/[email protected] /go.mod
30
31
```
31
32
32
33
## CLI
@@ -284,26 +285,26 @@ $ pkger parse
284
285
" ." : [
285
286
{
286
287
" file" : {
287
- " Abs" : " $GOPATH /src/github.com/markbates/pkger/pkging/pkgtest/testdata/ref/foo/bar/baz" ,
288
+ " Abs" : " /go /src/github.com/markbates/pkger/pkging/pkgtest/testdata/ref/foo/bar/baz" ,
288
289
" Path" : {
289
290
" Pkg" : " app" ,
290
291
" Name" : " /foo/bar/baz"
291
292
},
292
293
" Here" : {
293
- " Dir" : " $GOPATH /src/github.com/markbates/pkger/pkging/pkgtest/testdata/ref" ,
294
+ " Dir" : " /go /src/github.com/markbates/pkger/pkging/pkgtest/testdata/ref" ,
294
295
" ImportPath" : " app" ,
295
296
" Module" : {
296
297
" Path" : " app" ,
297
298
" Main" : true,
298
- " Dir" : " $GOPATH /src/github.com/markbates/pkger/pkging/pkgtest/testdata/ref" ,
299
- " GoMod" : " $GOPATH /src/github.com/markbates/pkger/pkging/pkgtest/testdata/ref/go.mod" ,
299
+ " Dir" : " /go /src/github.com/markbates/pkger/pkging/pkgtest/testdata/ref" ,
300
+ " GoMod" : " /go /src/github.com/markbates/pkger/pkging/pkgtest/testdata/ref/go.mod" ,
300
301
" GoVersion" : " 1.13"
301
302
},
302
303
" Name" : " main"
303
304
}
304
305
},
305
306
" pos" : {
306
- " Filename" : " $GOPATH /src/github.com/markbates/pkger/pkging/pkgtest/testdata/ref/main.go" ,
307
+ " Filename" : " /go /src/github.com/markbates/pkger/pkging/pkgtest/testdata/ref/main.go" ,
307
308
" Offset" : 629,
308
309
" Line" : 47,
309
310
" Column" : 27
@@ -313,26 +314,26 @@ $ pkger parse
313
314
},
314
315
{
315
316
" file" : {
316
- " Abs" : " $GOPATH /src/github.com/markbates/pkger/pkging/pkgtest/testdata/ref/foo/bar/baz/biz.txt" ,
317
+ " Abs" : " /go /src/github.com/markbates/pkger/pkging/pkgtest/testdata/ref/foo/bar/baz/biz.txt" ,
317
318
" Path" : {
318
319
" Pkg" : " app" ,
319
320
" Name" : " /foo/bar/baz/biz.txt"
320
321
},
321
322
" Here" : {
322
- " Dir" : " $GOPATH /src/github.com/markbates/pkger/pkging/pkgtest/testdata/ref" ,
323
+ " Dir" : " /go /src/github.com/markbates/pkger/pkging/pkgtest/testdata/ref" ,
323
324
" ImportPath" : " app" ,
324
325
" Module" : {
325
326
" Path" : " app" ,
326
327
" Main" : true,
327
- " Dir" : " $GOPATH /src/github.com/markbates/pkger/pkging/pkgtest/testdata/ref" ,
328
- " GoMod" : " $GOPATH /src/github.com/markbates/pkger/pkging/pkgtest/testdata/ref/go.mod" ,
328
+ " Dir" : " /go /src/github.com/markbates/pkger/pkging/pkgtest/testdata/ref" ,
329
+ " GoMod" : " /go /src/github.com/markbates/pkger/pkging/pkgtest/testdata/ref/go.mod" ,
329
330
" GoVersion" : " 1.13"
330
331
},
331
332
" Name" : " main"
332
333
}
333
334
},
334
335
" pos" : {
335
- " Filename" : " $GOPATH /src/github.com/markbates/pkger/pkging/pkgtest/testdata/ref/main.go" ,
336
+ " Filename" : " /go /src/github.com/markbates/pkger/pkging/pkgtest/testdata/ref/main.go" ,
336
337
" Offset" : 706,
337
338
" Line" : 51,
338
339
" Column" : 25
@@ -388,38 +389,38 @@ $ pkger list -json
388
389
" ImportPath" : " app" ,
389
390
" Files" : [
390
391
{
391
- " Abs" : " $GOPATH /src/github.com/markbates/pkger/pkging/pkgtest/testdata/ref/assets" ,
392
+ " Abs" : " /go /src/github.com/markbates/pkger/pkging/pkgtest/testdata/ref/assets" ,
392
393
" Path" : {
393
394
" Pkg" : " app" ,
394
395
" Name" : " /assets"
395
396
},
396
397
" Here" : {
397
- " Dir" : " $GOPATH /src/github.com/markbates/pkger/pkging/pkgtest/testdata/ref/assets" ,
398
+ " Dir" : " /go /src/github.com/markbates/pkger/pkging/pkgtest/testdata/ref/assets" ,
398
399
" ImportPath" : " " ,
399
400
" Module" : {
400
401
" Path" : " app" ,
401
402
" Main" : true,
402
- " Dir" : " $GOPATH /src/github.com/markbates/pkger/pkging/pkgtest/testdata/ref" ,
403
- " GoMod" : " $GOPATH /src/github.com/markbates/pkger/pkging/pkgtest/testdata/ref/go.mod" ,
403
+ " Dir" : " /go /src/github.com/markbates/pkger/pkging/pkgtest/testdata/ref" ,
404
+ " GoMod" : " /go /src/github.com/markbates/pkger/pkging/pkgtest/testdata/ref/go.mod" ,
404
405
" GoVersion" : " 1.13"
405
406
},
406
407
" Name" : " assets"
407
408
}
408
409
},
409
410
{
410
- " Abs" : " $GOPATH /src/github.com/markbates/pkger/pkging/pkgtest/testdata/ref/assets/css" ,
411
+ " Abs" : " /go /src/github.com/markbates/pkger/pkging/pkgtest/testdata/ref/assets/css" ,
411
412
" Path" : {
412
413
" Pkg" : " app" ,
413
414
" Name" : " /assets/css"
414
415
},
415
416
" Here" : {
416
- " Dir" : " $GOPATH /src/github.com/markbates/pkger/pkging/pkgtest/testdata/ref/assets" ,
417
+ " Dir" : " /go /src/github.com/markbates/pkger/pkging/pkgtest/testdata/ref/assets" ,
417
418
" ImportPath" : " " ,
418
419
" Module" : {
419
420
" Path" : " app" ,
420
421
" Main" : true,
421
- " Dir" : " $GOPATH /src/github.com/markbates/pkger/pkging/pkgtest/testdata/ref" ,
422
- " GoMod" : " $GOPATH /src/github.com/markbates/pkger/pkging/pkgtest/testdata/ref/go.mod" ,
422
+ " Dir" : " /go /src/github.com/markbates/pkger/pkging/pkgtest/testdata/ref" ,
423
+ " GoMod" : " /go /src/github.com/markbates/pkger/pkging/pkgtest/testdata/ref/go.mod" ,
423
424
" GoVersion" : " 1.13"
424
425
},
425
426
" Name" : " assets"
0 commit comments