-
Notifications
You must be signed in to change notification settings - Fork 787
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
Don't fail copy to emptydir #2978
Don't fail copy to emptydir #2978
Conversation
@nalind PTAL |
Looks like a legit test failure. Will have to see if the test was wrong to begin with as it was expected to fail but now succeeds or if I messed something up.
|
OK, I found the issue. I was not considering the |
194da51
to
3078597
Compare
When a COPY command was being targeted at an empty new directory, the copy would fail. It could be "worked around" by putting a dummy file into the directory. Addresses: containers#2964 Signed-off-by: TomSweeneyRedHat <[email protected]>
3078597
to
758eb20
Compare
/approve |
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
[APPROVALNOTIFIER] This PR is APPROVED Approval requirements bypassed by manually added approval. This pull-request has been approved by: rhatdan, saschagrunert, TomSweeneyRedHat 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 |
/lgtm |
Cherrypick #2978 to fix and issue when copying files to an empty directory on a container. Signed-off-by: TomSweeneyRedHat <[email protected]>
When a COPY command was being targeted at an empty new directory,
the copy would fail. It could be "worked around" by putting a dummy
file into the directory.
Fixes: #2964
Signed-off-by: TomSweeneyRedHat [email protected]
What type of PR is this?
What this PR does / why we need it:
Fixes an issue where a COPY to a new/empty directory would fail during the build process.
How to verify it
See 'bud test empty newdir' in bud.bats
Which issue(s) this PR fixes:
Special notes for your reviewer:
Does this PR introduce a user-facing change?