-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Support globs in custom/buildpacks builder deps #3878
Conversation
Codecov Report
|
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'm a bit leery of using docker glob semantics for a non-docker builder (viz the docker.WalkWorkspace
's use of docker's NewFilePattern
).
More broadly, I'm a bit concerned about the different globbing matchers in use. We have our own util.ExpandPathsGlob()
and we also pull in github.com/bmatcuk/doublestar
for globs elsewhere.
I don't know how these different globs are different. It might make sense to use specific styles (e.g., docker-style for the docker builder), though that can also be confusing.
} | ||
} | ||
|
||
files, err := docker.WalkWorkspace(workspace, excludes, paths) |
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.
Could we get invert this dependency? It really just uses docker's fileutils.NewPatternMatcher()
to process the excludes globs and then does a normal godirwalk.Walk()
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 was trying to make it work and then I definitely was planning on improving the codebase. We have too many functions where we walk the workspace.
Fixes GoogleContainerTools#3826 Signed-off-by: David Gageot <david@gageot.net>
Fixes #3826
Signed-off-by: David Gageot david@gageot.net