-
Notifications
You must be signed in to change notification settings - Fork 25
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
Source Refactor #117
Source Refactor #117
Conversation
4e5c819
to
96061f5
Compare
9b83cd0
to
d600d45
Compare
source.go
Outdated
return src.DockerImage != nil && src.DockerImage.Cmd != nil | ||
} | ||
|
||
func GetFilter(src Source, forMount bool, opts ...llb.ConstraintsOpt) llb.StateOption { |
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.
This should be uneported, and maybe inlined in GetSource
?
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'd rather not inline it to avoid passing forMount
through getSource
, if that's ok
…ssing into nested build
This says there's conflicts. |
Refactors the source generation code in
sources.go.
In particular:Note: This could probably wait for #110, as those unit tests would probably be better able to catch any bugs in the filter handling logic introduced here.