bump(k8s.io/gengo):cfac487ed0c8217f3b1ac5d33c14f78b35291151

parent 037711d6
...@@ -2639,43 +2639,43 @@ ...@@ -2639,43 +2639,43 @@
}, },
{ {
"ImportPath": "k8s.io/gengo/args", "ImportPath": "k8s.io/gengo/args",
"Rev": "257bac2d9657a64f7aa2d5c79beff88bb497df74" "Rev": "cfac487ed0c8217f3b1ac5d33c14f78b35291151"
}, },
{ {
"ImportPath": "k8s.io/gengo/examples/deepcopy-gen/generators", "ImportPath": "k8s.io/gengo/examples/deepcopy-gen/generators",
"Rev": "257bac2d9657a64f7aa2d5c79beff88bb497df74" "Rev": "cfac487ed0c8217f3b1ac5d33c14f78b35291151"
}, },
{ {
"ImportPath": "k8s.io/gengo/examples/defaulter-gen/generators", "ImportPath": "k8s.io/gengo/examples/defaulter-gen/generators",
"Rev": "257bac2d9657a64f7aa2d5c79beff88bb497df74" "Rev": "cfac487ed0c8217f3b1ac5d33c14f78b35291151"
}, },
{ {
"ImportPath": "k8s.io/gengo/examples/import-boss/generators", "ImportPath": "k8s.io/gengo/examples/import-boss/generators",
"Rev": "257bac2d9657a64f7aa2d5c79beff88bb497df74" "Rev": "cfac487ed0c8217f3b1ac5d33c14f78b35291151"
}, },
{ {
"ImportPath": "k8s.io/gengo/examples/set-gen/generators", "ImportPath": "k8s.io/gengo/examples/set-gen/generators",
"Rev": "257bac2d9657a64f7aa2d5c79beff88bb497df74" "Rev": "cfac487ed0c8217f3b1ac5d33c14f78b35291151"
}, },
{ {
"ImportPath": "k8s.io/gengo/examples/set-gen/sets", "ImportPath": "k8s.io/gengo/examples/set-gen/sets",
"Rev": "257bac2d9657a64f7aa2d5c79beff88bb497df74" "Rev": "cfac487ed0c8217f3b1ac5d33c14f78b35291151"
}, },
{ {
"ImportPath": "k8s.io/gengo/generator", "ImportPath": "k8s.io/gengo/generator",
"Rev": "257bac2d9657a64f7aa2d5c79beff88bb497df74" "Rev": "cfac487ed0c8217f3b1ac5d33c14f78b35291151"
}, },
{ {
"ImportPath": "k8s.io/gengo/namer", "ImportPath": "k8s.io/gengo/namer",
"Rev": "257bac2d9657a64f7aa2d5c79beff88bb497df74" "Rev": "cfac487ed0c8217f3b1ac5d33c14f78b35291151"
}, },
{ {
"ImportPath": "k8s.io/gengo/parser", "ImportPath": "k8s.io/gengo/parser",
"Rev": "257bac2d9657a64f7aa2d5c79beff88bb497df74" "Rev": "cfac487ed0c8217f3b1ac5d33c14f78b35291151"
}, },
{ {
"ImportPath": "k8s.io/gengo/types", "ImportPath": "k8s.io/gengo/types",
"Rev": "257bac2d9657a64f7aa2d5c79beff88bb497df74" "Rev": "cfac487ed0c8217f3b1ac5d33c14f78b35291151"
}, },
{ {
"ImportPath": "k8s.io/heapster/metrics/api/v1/types", "ImportPath": "k8s.io/heapster/metrics/api/v1/types",
......
...@@ -447,6 +447,7 @@ func (b *Builder) findTypesIn(pkgPath importPathString, u *types.Universe) error ...@@ -447,6 +447,7 @@ func (b *Builder) findTypesIn(pkgPath importPathString, u *types.Universe) error
// We're keeping this package. This call will create the record. // We're keeping this package. This call will create the record.
u.Package(string(pkgPath)).Name = pkg.Name() u.Package(string(pkgPath)).Name = pkg.Name()
u.Package(string(pkgPath)).Path = pkg.Path() u.Package(string(pkgPath)).Path = pkg.Path()
u.Package(string(pkgPath)).SourcePath = b.absPaths[pkgPath]
for _, f := range b.parsed[pkgPath] { for _, f := range b.parsed[pkgPath] {
if strings.HasSuffix(f.name, "/doc.go") { if strings.HasSuffix(f.name, "/doc.go") {
......
...@@ -94,6 +94,9 @@ type Package struct { ...@@ -94,6 +94,9 @@ type Package struct {
// Canonical name of this package-- its path. // Canonical name of this package-- its path.
Path string Path string
// The location this package was loaded from
SourcePath string
// Short name of this package; the name that appears in the // Short name of this package; the name that appears in the
// 'package x' line. // 'package x' line.
Name string Name string
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment