From 34c68fdc37d3f6d4eb8bf0ebcab4b8c02d64d8ce Mon Sep 17 00:00:00 2001 From: Timor Gruber Date: Sat, 14 Nov 2026 15:32:39 +0200 Subject: [PATCH 1/3] fix template rendering without optional GPG data Read the optional GPG namespace safely so installations that skip GPG\nsetup can render Git and Zsh configuration. --- dot_gitconfig.tmpl | 2 +- dot_zshrc.tmpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dot_gitconfig.tmpl b/dot_gitconfig.tmpl index 2a267fd..f237c8c 100644 --- a/dot_gitconfig.tmpl +++ b/dot_gitconfig.tmpl @@ -1,6 +1,6 @@ [include] path = {{ .chezmoi.homeDir }}/.config/git/common.gitconfig -{{- if (hasKey (default (dict) .gpg) "signing_key") }} +{{- if (hasKey (default (dict) (get . "gpg")) "signing_key") }} [user] signingkey = {{ .gpg.signing_key }} {{- end }} diff --git a/dot_zshrc.tmpl b/dot_zshrc.tmpl index a520d9a..b2376b8 100644 --- a/dot_zshrc.tmpl +++ b/dot_zshrc.tmpl @@ -111,7 +111,7 @@ if command -v jfrog &>/dev/null; then fi # Setup custom aliases -{{ if (hasKey (default (dict) .gpg) "signing_key") -}} +{{ if (hasKey (default (dict) (get . "gpg")) "signing_key") -}} alias gpg-unlock='gpg --sign --local-user {{ .gpg.signing_key }} --output /dev/null /dev/null' {{- end }} From 26711cd3d40d0511773448bbfeba84023696ac9d Mon Sep 17 00:00:00 2001 From: Timor Gruber Date: Sat, 14 Nov 2026 20:08:16 +0200 Subject: [PATCH 2/3] make jq a required installer prerequisite Ensure jq is available before chezmoi applies settings and agent hooks.\nRemove it from optional tools, which are installed after dotfiles apply. --- installer/internal/config/compatibility.yaml | 24 ++++++++++++++++++++ installer/internal/config/tools.yaml | 2 -- 2 files changed, 24 insertions(+), 2 deletions(-) diff --git a/installer/internal/config/compatibility.yaml b/installer/internal/config/compatibility.yaml index 119a163..364adcd 100644 --- a/installer/internal/config/compatibility.yaml +++ b/installer/internal/config/compatibility.yaml @@ -32,6 +32,10 @@ operatingSystems: command: "git" description: "Git version control system" install_hint: "sudo apt-get install git" + - name: "jq" + command: "jq" + description: "JSON processor required to apply dotfiles and run agent hooks" + install_hint: "sudo apt-get install jq" debian: supported: true version_constraint: ">= 10" @@ -57,6 +61,10 @@ operatingSystems: command: "git" description: "Git version control system" install_hint: "sudo apt-get install git" + - name: "jq" + command: "jq" + description: "JSON processor required to apply dotfiles and run agent hooks" + install_hint: "sudo apt-get install jq" fedora: supported: true version_constraint: ">= 35" @@ -84,6 +92,10 @@ operatingSystems: command: "git" description: "Git version control system" install_hint: "sudo dnf install git" + - name: "jq" + command: "jq" + description: "JSON processor required to apply dotfiles and run agent hooks" + install_hint: "sudo dnf install jq" centos: supported: true notes: "CentOS 6 or newer" @@ -111,6 +123,10 @@ operatingSystems: command: "git" description: "Git version control system" install_hint: "sudo dnf install git" + - name: "jq" + command: "jq" + description: "JSON processor required to apply dotfiles and run agent hooks" + install_hint: "sudo dnf install jq" redhat: supported: true notes: "Red Hat Enterprise Linux 6 or newer" @@ -138,6 +154,10 @@ operatingSystems: command: "git" description: "Git version control system" install_hint: "sudo dnf install git" + - name: "jq" + command: "jq" + description: "JSON processor required to apply dotfiles and run agent hooks" + install_hint: "sudo dnf install jq" rocky: supported: false notes: "No current plans for support" @@ -164,6 +184,10 @@ operatingSystems: command: "git" description: "Git version control system (included with Command Line Tools)" install_hint: "Install Command Line Tools: xcode-select --install" + - name: "jq" + command: "jq" + description: "JSON processor required to apply dotfiles and run agent hooks" + install_hint: "brew install jq" windows: supported: false notes: "Windows is not supported" diff --git a/installer/internal/config/tools.yaml b/installer/internal/config/tools.yaml index 38b88de..6d3b6f6 100644 --- a/installer/internal/config/tools.yaml +++ b/installer/internal/config/tools.yaml @@ -13,7 +13,5 @@ tools: description: "Fast alternative to find" - name: difftastic description: "Structural diff tool" - - name: jq - description: "Lightweight command-line JSON processor" - name: uv description: "Fast Python package and project manager" From 1fdbd262dadcba434902f91ae10c7e858cc9a92f Mon Sep 17 00:00:00 2001 From: Timor Gruber Date: Sat, 14 Nov 2026 20:30:09 +0200 Subject: [PATCH 3/3] authenticate chezmoi GitHub requests in CI Pass the Actions token to both installer E2E steps so chezmoi avoids shared anonymous GitHub API rate limits when resolving releases. --- .github/workflows/installer-ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/installer-ci.yml b/.github/workflows/installer-ci.yml index 1bdec33..1aaa5e7 100644 --- a/.github/workflows/installer-ci.yml +++ b/.github/workflows/installer-ci.yml @@ -224,6 +224,8 @@ jobs: exit $exit_code - name: Test Non-Interactive Installation + env: + CHEZMOI_GITHUB_ACCESS_TOKEN: ${{ github.token }} run: | echo "Testing installer in non-interactive mode..." @@ -277,6 +279,8 @@ jobs: fi - name: Test Interactive Installer + env: + CHEZMOI_GITHUB_ACCESS_TOKEN: ${{ github.token }} run: | echo "Testing installer in interactive mode with expect automation..."