Skip to content

Commit 83961ea

Browse files
committed
fix: do not attempt to canonicalize signature path if it does not exist
1 parent b2a93b5 commit 83961ea

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/cli/signing.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,11 @@ fn get_paths_of_interest(
7474

7575
fn signature_path(file_path: &Path, signature_path: Option<PathBuf>) -> PathBuf {
7676
if let Some(path) = signature_path {
77-
path.canonicalize().unwrap()
77+
if path.exists() {
78+
path.canonicalize().unwrap()
79+
} else {
80+
path
81+
}
7882
} else if file_path.is_file() {
7983
file_path
8084
.with_extension("signature")

0 commit comments

Comments
 (0)