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-27 07:47:35 +0200
commit7abfe3e095e41a0742f7a7f30ce8d058edfcd94f (patch)
tree9624cbbfea197c002fba9ce5207f84d8c71aa5dd
parent78c65311313876728ccead6aaa76fdc23e2b22ed (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> (cherry picked from commit c83e376bdd4801e10a879385c89054c7320440f8)
-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)