-
So, I make use of several encrypted files. But at different "stages" when initializing chezmoi, encryption may or may not be fully enabled at that point in time. So when it isn't yet enabled, I dynamically ignore (through .chezmoiignore) those encrypted files. However, even though I can see that those files are indeed ignored (I use "execute-template" on .chezmoiignore to verify), when I do a "chezmoi status", I get a warning that there is no encryption. I think it only complains on the first encrypted file it encounters, because it only lists one file in the warning message. Again, at this point in time, when it warns, that same file is also being ignored. So if it's ignored, then why the warning? Is there a way to suppress the warning? Sorry, I've got a fairly "wacky" solution that inits and applies, building up the configs incrementally, until everything is complete. If you want to look at where I'm at, take a look at my dotfiles repo. Anyway, any clarity would be appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Can you share an example that reproduces the problem? You should only get the "no encryption" warning when chezmoi tries to decrypt something (either an |
Beta Was this translation helpful? Give feedback.
-
If I understand correctly, you want to be able to skip encrypted content while you are initializing and later on have chezmoi deal with encryption after you have your encryption scaffolding ready. If that is the case, you basically need a 2-step initialization solution. The way I see it, there are two options:
|
Beta Was this translation helpful? Give feedback.
Can you share an example that reproduces the problem?
You should only get the "no encryption" warning when chezmoi tries to decrypt something (either an
encrypted_
file or a call to thedecrypt
template function) and there is no encryption configured.