From 53f6659fc2cb3438174302fa2c041a380af177ff Mon Sep 17 00:00:00 2001 From: Brian Dunn Date: Fri, 22 May 2026 22:11:09 +0000 Subject: [PATCH] fix(arch): use /etc/arch-release for distro detection instead of kernel version The Task `if:` field on a task reference doesn't reliably gate execution, causing arch tools to run on Debian/Ubuntu. Mirrors the pattern already used in debian:sync and checks /etc/arch-release (standard Arch file) instead of the fragile `uname -r | grep -q arch1` heuristic. Also excludes .claude/settings.local.json from dprint checks since it is gitignored and modified at runtime by the Claude Code harness. Co-Authored-By: Claude Sonnet 4.6 --- dprint.json | 3 ++- taskfiles/arch.yml | 7 +++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/dprint.json b/dprint.json index b691eee14..79e8bea0d 100644 --- a/dprint.json +++ b/dprint.json @@ -58,7 +58,8 @@ "gitleaks-report.json", "config/claude/statsig/**/*.*", "config/claude/projects/**/*.*", - "config/claude/todos/**/*.*" + "config/claude/todos/**/*.*", + ".claude/settings.local.json" ], "plugins": [ "https://plugins.dprint.dev/biome-0.12.0.wasm", diff --git a/taskfiles/arch.yml b/taskfiles/arch.yml index 463a69a93..806274cf8 100644 --- a/taskfiles/arch.yml +++ b/taskfiles/arch.yml @@ -31,8 +31,11 @@ tasks: platforms: [linux] silent: true cmds: - - task: tools:install - if: 'uname -r | grep -q arch1' + - cmd: | + if [ ! -f /etc/arch-release ]; then + exit 0 + fi + task arch:tools:install tools:install: desc: Installs all apt packages