summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Beyer <matthias.beyer@atos.net>2021-04-12 13:58:37 +0200
committerMatthias Beyer <matthias.beyer@atos.net>2021-04-12 19:34:41 +0200
commitc83e376bdd4801e10a879385c89054c7320440f8 (patch)
tree9c241502d40eb2dedd8940483216faefc898b586
parent8706494827ad598d335a9369beecdd0ddfef0cee (diff)
Fix: copy release artifact instead of renaming it
Because renaming does not work if there is a filesystem boundary. Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
-rw-r--r--src/commands/release.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commands/release.rs b/src/commands/release.rs
index 40daf8e..2910810 100644
--- a/src/commands/release.rs
+++ b/src/commands/release.rs
@@ -163,7 +163,7 @@ async fn new_release(
}
// else !dest_path.exists()
- tokio::fs::rename(art_path, dest_path)
+ tokio::fs::copy(art_path, dest_path)
.await
.map_err(Error::from)
.map(|_| art)