-
Notifications
You must be signed in to change notification settings - Fork 1.7k
fix: Quotes in dockerfiles env vars break copy dependency checks #6796
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
Codecov Report
@@ Coverage Diff @@
## main #6796 +/- ##
==========================================
- Coverage 70.48% 69.40% -1.09%
==========================================
Files 515 540 +25
Lines 23150 24596 +1446
==========================================
+ Hits 16317 17070 +753
- Misses 5776 6395 +619
- Partials 1057 1131 +74
Continue to review full report at Codecov.
|
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
Hi @aaron-prindle thank you very much. I noticed an estrange behavior when testing this change and wanted to ask someone before opening an issue. When building docker containers, |
@kadern0 can you give a small sample-app/set-of-steps to reproduce the issue you mentioned above? I can investigate more thoroughly if you have an app setup I can use to repro. |
Steps to reproduce:
Verify directory exists:
Now, add a single file to the directory and try again:
It fails when the directory is empty. |
@kadern0 the docker COPY empty directory appears to be a current bug in skaffold that is not related to this change. I attempted reproducing this error w/ various version of skaffold and this has been a skaffold bug from at least v1.32.0 onward:
As such I do not believe this issue is related to this PR and the PR is the correct fix as is. I have created #6810 to track the issue w/ skaffold not properly handling Dockerfiles that COPY an empty directory |
Fixes GoogleContainerTools#6762 Signed-off-by: Pablo Caderno <[email protected]>
Merging, thanks for all of your work here @kadern0! |
Fixes #6762
Signed-off-by: Pablo Caderno [email protected]
Description
Fixes the issue with quoted variables and "COPY" commands.
Before:
After: