You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Chezmoi doesn't seem to recognize the --secrets flag's values anymore.
To reproduce
> chezmoi add --secrets ignore some-file
chezmoi: invalid value
Expected behavior
Add the file while ignoring secrets (like it used to)
Output of chezmoi doctor
$ chezmoi doctorRESULT CHECK MESSAGEok version v2.54.0, commit 92f8a9854bc9a234b937dab2f7d75764efdc0e80, built at 2024-11-09T19:56:50Z, built by goreleaserok latest-version v2.54.0ok os-arch linux/amd64 (Arch Linux)ok uname Linux aaron-arch-HP 6.11.9-arch1-1 #1 SMP PREEMPT_DYNAMIC Sun, 17 Nov 2024 16:06:17 +0000 x86_64 GNU/Linuxok go-version go1.23.3 (gc)ok executable /usr/local/bin/chezmoiok upgrade-method sudo-upgrade-packageok config-file ~/.config/chezmoi/chezmoi.toml, last modified 2024-11-25T05:16:47-06:00ok source-dir ~/.local/share/chezmoi is a git working tree (clean)ok suspicious-entries no suspicious entriesok working-tree ~/.local/share/chezmoi is a git working tree (clean)ok dest-dir ~ is a directoryok umask 002ok cd-command found /usr/bin/bashok cd-args /usr/bin/bashinfo diff-command not setok edit-command found ~/.local/bin/nvimok edit-args ~/.local/bin/nvimok git-command found /usr/bin/git, version 2.47.0warning merge-command vimdiff not found in $PATHok shell-command found /usr/bin/bashok shell-args /usr/bin/bashok age-command found /usr/bin/age, version 1.2.0ok gpg-command found /usr/bin/gpg, version 2.4.6info pinentry-command not setinfo 1password-command op not found in $PATHok bitwarden-command found /usr/local/bin/bw, version 2024.4.1info bitwarden-secrets-command bws not found in $PATHinfo dashlane-command dcli not found in $PATHinfo doppler-command doppler not found in $PATHinfo gopass-command gopass not found in $PATHinfo keepassxc-command keepassxc-cli not found in $PATHinfo keepassxc-db not setinfo keeper-command keeper not found in $PATHinfo lastpass-command lpass not found in $PATHinfo pass-command pass not found in $PATHinfo passhole-command ph not found in $PATHinfo rbw-command rbw not found in $PATHinfo vault-command vault not found in $PATHinfo vlt-command vlt not found in $PATHinfo secret-command not set
Additional context
Note: using unsupported values gives a different error:
> chezmoi add --verbose --secrets random file
chezmoi: invalid argument "random"for"--secrets" flag: invalid value
The text was updated successfully, but these errors were encountered:
> chezmoi add --secrets ignore some-file
chezmoi: invalid value
I'm unable to reproduce this. For me, the --secrets flag works as expected. For example --secrets ignore is parsed correctly and --secrets random gives the "invalid value" error as it should.
Could you give exact steps for someone else to reproduce the problem?
i've found the issue.
Apparently my config contains
[add]
secrets = "error"
On v2.53.1, this didn't cause an issue and acted as a default if no argument was given. Now, if a command line argument is given, it errors no matter what.
Describe the bug
Chezmoi doesn't seem to recognize the
--secrets
flag's values anymore.To reproduce
> chezmoi add --secrets ignore some-file chezmoi: invalid value
Expected behavior
Add the file while ignoring secrets (like it used to)
Output of
chezmoi doctor
Additional context
Note: using unsupported values gives a different error:
The text was updated successfully, but these errors were encountered: