Skip to content
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

fix(dockerignore): Add wildcard support to dockerignore.go #12239

Merged
merged 3 commits into from
Oct 28, 2024

Conversation

idsulik
Copy link
Collaborator

@idsulik idsulik commented Oct 27, 2024

What I did
Added wildcard support to dockerignore::NewDockerPatternMatcher, because if the .dockerignore contains a wildcard to ignore all files + lines with an exclusion, it ignores all files while it shouldn't ignore the excluded files

Related issue
#12236

PR to reproduce the bug #12238

(not mandatory) A picture of a cute animal, if possible in relation to what you did
image

Signed-off-by: Suleiman Dibirov <idsulik@gmail.com>
Signed-off-by: Suleiman Dibirov <idsulik@gmail.com>
Copy link
Contributor

@glours glours left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good to me, you just need to add the license header to the new created file

@@ -0,0 +1,92 @@
package watch
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need to add the license header to this new file

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you, pushed fix

Signed-off-by: Suleiman Dibirov <idsulik@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants