Issue with chezmoi update (with age encryption) during ujust upgrade

Running Bluefin-dx with stable-daily. I’ve had my laptop (AMD *7840U - Framework 13) in sleep mode the last few days so I wanted to apply the update before working. Unfortunately, during the update I ran into an issue with chezmoi:

ujust upgrade

Everything succeeds except for chezmoi:

── 12:46:50 - chezmoi ──────────────────────────────────────────────────────────
Already up to date.
chezmoi: .gitconfig: open /usr/share/ublue-os/key.txt: no such file or directory
chezmoi failed:
0: Command failed: /home/linuxbrew/.linuxbrew/bin/chezmoi update
1: /home/linuxbrew/.linuxbrew/bin/chezmoi failed: exit status: 1

Location:
src/steps/generic.rs:685

My key is stored in $HOME/.local/key.txt and the base command works:

╰─ 13:09 > /home/linuxbrew/.linuxbrew/bin/chezmoi update
Already up to date.

Is this a bug? Or should I be keeping my age key in a different location? Thoughts welcome, thanks!

This seems to be a result of not including the full path to the age key.txt in the ~/.config/chezmoi/chezmoi.toml.

I had env vars that I initially thought were being eval’ed but apparently are not. Setting the full path sans variables fixed the issue and resulting updates work fine.

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.