From ff4e2a5c5ddaa919131a3b04be0072872c8d9c71 Mon Sep 17 00:00:00 2001 From: Stan Grams Date: Sat, 18 Jul 2026 23:57:38 +0200 Subject: [PATCH] [chore](trx-rs): install reuse with charset-normalizer extra The runner image's `reuse` failed to import (NoEncodingModuleError): it needs an encoding-detection backend, which the bare `reuse` install does not provide and which libmagic/`file` is not present to satisfy. Install `reuse[charset-normalizer]` so the reuse job can run in the image. Rebuild the runner image and recreate the containers to pick this up. Assisted-By: Claude Code (claude-opus-4) Claude-Session: https://claude.ai/code/session_01NFpGtGTWUEYXLwZeZs2RAV Signed-off-by: Stan Grams --- container/Containerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/container/Containerfile b/container/Containerfile index 1632a08e..1e5b62ca 100644 --- a/container/Containerfile +++ b/container/Containerfile @@ -32,7 +32,9 @@ RUN curl -fsSL https://deb.nodesource.com/setup_${NODE_MAJOR}.x | bash - \ && rm -rf /var/lib/apt/lists/* # REUSE >= 3 (Debian's packaged reuse is too old for REUSE.toml). -RUN PIPX_HOME=/opt/pipx PIPX_BIN_DIR=/usr/local/bin pipx install reuse +# The [charset-normalizer] extra provides an encoding-detection backend; +# without it (and without libmagic) reuse fails to import at runtime. +RUN PIPX_HOME=/opt/pipx PIPX_BIN_DIR=/usr/local/bin pipx install 'reuse[charset-normalizer]' # Rust stable with rustfmt + clippy, installed system-wide. RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs \