-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Fix .dockerignore handling on Windows #893
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
Conversation
@orzeh @KostyaSha should we spin off another PR/branch to get this merged into the next point release (3.0.13)? |
Is it possible to cover with some test case? |
@KostyaSha existing test fails on Windows without this fix. |
@orzeh @KostyaSha one these days, hopefully in the not too distant future, we'll all look back and laugh that folks were ever using windows in the first place ;) |
Could you place comment about windows in code? |
@KostyaSha where? And what should I comment? |
Under this line describing that this required for windows |
@KostyaSha ok, I added comment. |
and to 3.0.x if needed faster |
Fix .dockerignore handling on Windows
When excluding files from build context using patterns defined in
.dockerignore
fileFilePathUtil.relativize()
method is used. It changes path separator to/
which leads to files not being properly excluded on Windows machines. This PR fixes that issue.This PR is partially related to #890 and gradle-docker-java plugin issue as it is impossible to exclude subdirectories and/or files on Windows.
This change is