-
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
copier: add NoOverwriteNonDirDir
option
#4043
Conversation
e22e0e6
to
7192a9d
Compare
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 with an optional nit. The unit test is much appreciated!
Similar to the `NoOverwriteDirNonDir` one, add an option that disables non-directories from being overwritten by directories. Required-for: containers/podman/issues/14420 Signed-off-by: Valentin Rothberg <[email protected]>
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
/hold
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: flouthoc, nalind, vrothberg 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 |
CI queue seems slow today. |
/hold cancel |
Similar to the
NoOverwriteDirNonDir
one, add an option that disablesnon-directories from being overwritten by directories.
Required-for: containers/podman/issues/14420
Signed-off-by: Valentin Rothberg [email protected]
What type of PR is this?
What this PR does / why we need it:
Add a new option to copier.Put to throw an error if a non-dir is overwritten with a dir. Needed for Docker-compat in
podman cp
.How to verify it
go test -v ./copier
.Does this PR introduce a user-facing change?
@nalind PTAL