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: Prevent .dockerignore entry from matching everything if it ends with globstart #1122

Merged

Conversation

HofmeisterAn
Copy link
Collaborator

What does this PR do?

The PR changes the .dockerignore partial (directory or file path) match implementation. The previous implementation contained a bug that resulted in creating a regular expression matching everything if a .dockerignore entry or line ended with /**, such as !.git/refs/heads/**.

Why is it important?

Developers could encounter issues where the .dockerignore entry either ignored too many directories or files, or the negate pattern accepted too many directories or files that should have been ignored.

Related issues

@HofmeisterAn HofmeisterAn added the bug Something isn't working label Feb 19, 2024
Copy link

netlify bot commented Feb 19, 2024

Deploy Preview for testcontainers-dotnet ready!

Name Link
🔨 Latest commit 1202c4e
🔍 Latest deploy log https://app.netlify.com/sites/testcontainers-dotnet/deploys/65d3915bcff71d0008096c3f
😎 Deploy Preview https://deploy-preview-1122--testcontainers-dotnet.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@HofmeisterAn HofmeisterAn merged commit 2766fec into develop Feb 19, 2024
14 checks passed
@HofmeisterAn HofmeisterAn deleted the bugfix/1119-do-not-negate-dockerignore-globstar-ending branch February 19, 2024 18:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: problem with exception in .dockerignore
1 participant