-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
filter: use filepath.Match
to maintain consistency with other pattern matching in podman
#12364
filter: use filepath.Match
to maintain consistency with other pattern matching in podman
#12364
Conversation
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 am not familiar with the code but it feels suspicious if existing tests would already check for these specific behaviours - why make the change then?
9f4d017
to
f9a4723
Compare
@vrothberg Sorry i forgot to add context for change in PR description. So in previous PR we had concerns about using More context here: #12295 (comment) |
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, thanks for elaborating, @flouthoc
f9a4723
to
8471104
Compare
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: flouthoc, rhatdan The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
matching in podman Following commit ensures that we maintain consistency with how pattern matching is being carried out everywhere else in podman. Switch from `regexp` to `filepath.Match` For example https://github.com/containers/common/blob/main/libimage/filters.go#L162 [NO NEW TESTS NEEDED] Signed-off-by: Aditya Rajan <[email protected]>
8471104
to
6011149
Compare
Just a rebase after #12367 |
/lgtm |
Following commit ensures that we maintain consistency with how pattern
matching is being carried out everywhere else in podman.
Switch from
regexp
tofilepath.Match
For example https://github.com/containers/common/blob/main/libimage/filters.go#L162
[NO TESTS NEEDED]
Tests were already added in #12295