-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inline fields of inlined types #25
Conversation
💚 CLA has been signed |
Originally fields of all embedded types were inlined (including named types such as |
Requesting review from @thbkrkr |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Sorry for the long delay.
if p.shouldIgnoreType(types.Key(typeDef)) { | ||
zap.S().Debugw("Skipping excluded type", "type", typeDef.String()) | ||
return nil | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this breaks the ignoreTypes
setting which seems to be now ignored: https://github.com/elastic/cloud-on-k8s/pull/7608/files#discussion_r1528299014
@@ -355,10 +356,6 @@ func (p *processor) loadType(pkg *loader.Package, t gotypes.Type, depth int) *ty | |||
} | |||
|
|||
typeDef := mkType(pkg, t) | |||
if p.shouldIgnoreType(types.Key(typeDef)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this breaks the ignoreTypes setting which seems to be now ignored: https://github.com/elastic/cloud-on-k8s/pull/7608/files#discussion_r1528299014
Or maybe it's this one... I'm lost...
for name, t := range gvi.types { | ||
key := types.Key(t) | ||
|
||
if p.shouldIgnoreType(key) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is too late as it does not prevent some excluded types from being referenced.
Closes #22