Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Under some circumstances -o is passed multiple times, causing rage to fail #245

Closed
lf- opened this issue Feb 16, 2024 · 2 comments
Closed

Comments

@lf-
Copy link

lf- commented Feb 16, 2024

I was running agenix -i ~/.ssh/age-identities.txt -r and observed that rage was invoked wrongly.

Here is a snippet of strace output:

[pid 85487] execve("/nix/store/h5wgz7yszcnqp4x1y57abi5ha1d4fqiv-rage-0.10.0/bin/rage", ["/
nix/store/h5wgz7yszcnqp4x1y57ab"..., "--decrypt", "--identity", "/home/jade/.ssh/age-ident
ities.t"..., "-o", "/tmp/jade/nix-shell.CTStd7/tmp.f"..., "-o", "/tmp/jade/nix-shell.CTStd
7/tmp.2"..., "acme-dns-reg.age"], 0x5444a0 /* 129 vars */) = 0
error: the argument '--output <OUTPUT>' cannot be used multiple times

Usage: rage [--encrypt] (-r RECIPIENT | -R PATH)... [-i IDENTITY] [-a] [-o OUTPUT] [INPUT]
       rage [--encrypt] --passphrase [-a] [-o OUTPUT] [INPUT]
       rage --decrypt [-i IDENTITY] [-o OUTPUT] [INPUT]
[pid 85487] +++ exited with 2 +++

agenix version: 0.14.0
age binary path: /nix/store/h5wgz7yszcnqp4x1y57abi5ha1d4fqiv-rage-0.10.0/bin/rage
age version: rage 0.10.0

@lf-
Copy link
Author

lf- commented Feb 16, 2024

Problem mysteriously vanishes in 0.15.0. Unsure why.

@lf- lf- closed this as completed Feb 16, 2024
@iclanzan
Copy link

I am having this issue on version 0.15.0 too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants