From a3780279d0871c1c3ca474461be657fd548c115e Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 21 Jul 2026 08:34:22 +0000 Subject: [PATCH] ci: check shared Copier answers file for drift check-common-files.sh diffed the shared workflows and dotfiles but never covered any .jinja file, leaving the templated files most likely to drift outside the safety net. The Copier answers file ({{_copier_conf.answers_file}}.jinja) is identical across the basic and rust flavours, so add a direct flavour-to-flavour diff for it. It has no root canonical, so the two flavours are compared against each other rather than against the root. Co-Authored-By: Claude Opus 4.8 Claude-Session: https://claude.ai/code/session_01RQ77oAVFVspKCULcSTuD1b --- ci/check-common-files.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ci/check-common-files.sh b/ci/check-common-files.sh index 89d2cf4..8feb328 100755 --- a/ci/check-common-files.sh +++ b/ci/check-common-files.sh @@ -33,4 +33,8 @@ diff -q release-please-config.json basic/release-please-config.json || exit_code diff -q .yamlfmt basic/.yamlfmt || exit_code=1 diff -q .yamlfmt rust/.yamlfmt || exit_code=1 +# The Copier answers file template has no root canonical, so the flavours are +# diffed against each other directly. +diff -q "basic/{{_copier_conf.answers_file}}.jinja" "rust/{{_copier_conf.answers_file}}.jinja" || exit_code=1 + exit $exit_code