-
Notifications
You must be signed in to change notification settings - Fork 119
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
dev: reland add direct tests for agenix #232
Conversation
This reverts commit 08dc506.
Why === * We'd like some tests for the CLI * Last time we tried it failed on macos What changed === * This time, we try to create the temp diretory in a way that works with macos too
When trying to install agenix on my darwin machine with this commit, I get the following error:
|
@vtuan10 did you intend to start a new issue, or is that related to this PR? You'll also need to include the command you're running. |
I can create an separate issue if wished, but it is related to this PR. I encountered this issue, when I upgraded my flake inputs. I tested all commits since I can reproduce this error, when I simply run |
Ah, thanks for the additional context. I'll see if I can reproduce next time I'm at my MBP. |
@vtuan10 not seeing it here. $ nix-info -m
- system: `"aarch64-darwin"`
- host os: `Darwin 23.2.0, macOS 14.2.1`
- multi-user?: `yes`
- sandbox: `yes`
- version: `nix-env (Nix) 2.19.2`
- channels(n8henrie): `""`
- channels(root): `""`
- nixpkgs: `/nix/store/b10famgvgsb87ppxvza6cbb4fb6qpw0d-source`
$ nix run github:ryantm/agenix -- --help
agenix - edit and rekey age secret files
agenix -e FILE [-i PRIVATE_KEY]
agenix -r [-i PRIVATE_KEY]
options:
-h, --help show help
-e, --edit FILE edits FILE using $EDITOR
-r, --rekey re-encrypts all secrets with specified recipients
-d, --decrypt FILE decrypts FILE to STDOUT
-i, --identity identity to use when decrypting
-v, --verbose verbose output
FILE an age-encrypted file
PRIVATE_KEY a path to a private SSH key used to decrypt file
EDITOR environment variable of editor to use when editing FILE
If STDIN is not interactive, EDITOR will be set to "cp /dev/stdin"
RULES environment variable with path to Nix file specifying recipient public keys.
Defaults to './secrets.nix'
agenix version: 0.15.0
age binary path: /nix/store/2bgv9ynggp3rilwl05bd8pij7sap7fhg-age-1.1.1/bin/age
age version: 1.1.1 |
Thanks for testing. I was able to run it as well, but only when I set |
I am also experiencing the same thing. I originally was using Nix 2.18 with Given this is some kind of permission error it makes me think maybe @vtuan10 and I have our nix installs in some state which it shouldn't be in. My install was from an early version of the determinate systems installer; to help rule this out, @n8henrie is your install relatively recent?
|
@chrisportela sorry for not getting back to you on this -- I guess #248 is what I deserve :) I probably wasn't seeing it in #232 (comment) due to a cached build success; running with I'm also on nix 2.19.3 now. |
Why
What changed
with macos too