-
Notifications
You must be signed in to change notification settings - Fork 5
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
Smart add to an encrypted or template target hangs modify manager #176
Comments
Thanks for your report! I probably missed this since I have never used the encryption feature (I store my secrets in a password manager and fill in from that instead). I will have to look into how that works. It may take a few days before I have time to dig into this though. |
Ah, I see what is happening. Chmm runs ❯ chezmoi add ~/dummy
adding dummy would remove encrypted attribute, continue? yes/no/all/quit But chmm swallows stdout (don't remember why that would have been done like that), so the output is never shown. In addition it appears chmm status output is also fully buffered rather than line buffered, so nothing is shown from that either. That also seems wrong. |
A new release including the fix should be out later this evening. |
Very nice! Thanks! I thought maybe smart add should encrypt the file if it's encrypted in the target (since it's smart 🤔 ) But this is also totally fine |
That is worth considering. Would have to look into how to determine which flags that need passing. And there is of course no way to do this for templates. |
Templates, yeah, of course. For the encryption I just use the --encrypt flag. |
Describe the bug
When using smart-add and the target in the chezmoi is either encrypted or a template, modify manager just hangs
To Reproduce
Steps to reproduce the behavior:
Expected behavior
File is added as encrypted or a warning is printed
Actual behavior
Environment (please complete the following information):
Output of
chezmoi_modify_manager --doctor
The text was updated successfully, but these errors were encountered: