-
Notifications
You must be signed in to change notification settings - Fork 140
Do not set DEFAULT_DECRYPT in function edit #292
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
base: main
Are you sure you want to change the base?
Conversation
Can confirm this works. Did since I was also running into this bug |
Also ran into this issue after upgrading to nixos 24.11. |
Can someone please review this? @n8henrie is see you reviewed last merged PR. Would appreciate some feedback at least. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi -- sorry this is brief. Can you explain why this is your recommended fix instead of testing for the -o
option already being set?
The output is different for each edit call. |
@n8henrie the way I'd review this:
That's why it doesn't make sense to check for an existing |
@ck3d can you rebase this PR? |
Thanks for elaborating. I agree, looking at the whole context a bit more, it seems like the age tool is not really designed to work on more than one file at a time, so looping while modifying global variables is a setup for trouble. I am super tempted to just refactor the script to a use local variables, readonly globals, and a more functional style. This should also get a regression test (please), ideally in a separate commit that currently fails. Thanks to all for input! |
Edit is called multiple times during rekey fixes ryantm#272
PR rebased and ready to merge |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a regression test, ideally in a separate commit that currently fails, and is subsequently fixed by the PR.
I know how important tests are, but I can not spend time on writing a regression test. |
I will try writing a test this weekend. |
I think we determined between #330 and #272 that this is only an issue if one has decided to pin to an outdated version of agenix or is using an alternate implementation like rage, so I think this can be closed. Will leave open for a little while longer to see if anyone on the thread is experiencing issues here on |
Edit is called multiple times during rekey
fixes #272