dep: Upgrade transitive dependencies (#1969)

* dep: Upgrade transitive dependencies

* Fix self-install failure

reflink_or_copy now fails if the dest already exists

9e0b2cf427

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>

---------

Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
This commit is contained in:
github-actions[bot] 2024-11-16 15:43:14 +10:00 committed by GitHub
parent dae59123eb
commit 8dbc22a45b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 120 additions and 101 deletions

View file

@ -33,6 +33,7 @@ fn copy_to_tempfile(src: &Path, dst: &Path) -> io::Result<NamedTempFile> {
src.display(),
tempfile.path().display()
);
fs::remove_file(tempfile.path())?;
// src and dst is likely to be on the same filesystem.
// Uses reflink if the fs support it, or fallback to
// `fs::copy` if it doesn't support it or it is not on the