-
Notifications
You must be signed in to change notification settings - Fork 481
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
bake: keep target inheritance #914
Conversation
08a1b11
to
fafc066
Compare
fafc066
to
6887661
Compare
6887661
to
5bc002b
Compare
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.
just one minor nit, I think it'd help to improve readability :)
363d1e5
to
af84988
Compare
return nil, nil | ||
func (c Config) target(name string, visited map[string]*Target, overrides map[string]map[string]Override) (*Target, error) { | ||
if t, ok := visited[name]; ok { | ||
return t, 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.
Need to block the key with nil
value here. Otherwise, it goes to an infinite loop.
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.
Good catch yes
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
af84988
to
0044c28
Compare
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.
.
fixes #912
After first pass inheritance is lost for the next targets in a group.
Signed-off-by: CrazyMax crazy-max@users.noreply.github.com