mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-24 14:28:42 +00:00
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:
parent
dae59123eb
commit
8dbc22a45b
2 changed files with 120 additions and 101 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue