Closed Anillc closed 5 months ago
Hmm, I'm a bit confused since I don't have this issue when using --ssh-opts '-p <smth>
locally.
I'm using deploy-rs
from 88b3059b020da69cbe16526b8d639bd5e0b51c8b. Which revision are you using?
Also, I don't think --ssh_opts
is a correct option:
error: Found argument '--ssh_opts' which wasn't expected, or isn't valid in this context
Did you mean '--ssh-opts'?
If you tried to supply `--ssh_opts` as a PATTERN use `-- --ssh_opts`
I'm at https://github.com/serokell/deploy-rs/commit/b3ea6f333f9057b77efd9091119ba67089399ced
I have tested https://github.com/serokell/deploy-rs/commit/88b3059b020da69cbe16526b8d639bd5e0b51c8b. The result is the same
here is the log
Also, I don't think
--ssh_opts
is a correct option:error: Found argument '--ssh_opts' which wasn't expected, or isn't valid in this context Did you mean '--ssh-opts'? If you tried to supply `--ssh_opts` as a PATTERN use `-- --ssh_opts`
sorry, It's my typo
Oh, right --ssh-opts='-p 1234'
works, --ssh-opts '-p 1234
doesn't (note the absence of =
)
It'd also be nice to add a regression test for this. Something like
diff --git a/nix/tests/default.nix b/nix/tests/default.nix
index b38e99d..3339f89 100644
--- a/nix/tests/default.nix
+++ b/nix/tests/default.nix
@@ -131,4 +131,9 @@ in {
user = "deploy";
deployArgs = "-s .#profile -- --offline";
};
+ hyphen-ssh-opts-regression = mkTest {
+ name = "profile";
+ user = "deploy";
+ deployArgs = "-s .#profile --ssh-opts '-p 22' -- --offline";
+ };
}
will do
for example
without
allow_hyphen_values
:workaround: add a space after quote
but it might be better adding
allow_hyphen_values = true