From 12bd4c5336c0663b9b171ccd96da6d83ab34ce64 Mon Sep 17 00:00:00 2001 From: Jonny Spicer Date: Tue, 11 Aug 2026 15:25:25 -0700 Subject: [PATCH] fix: stop naming a version inside the script header MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The header named the tag consumers should pin. But this file is frozen inside whatever tag they pinned, so the version written here is wrong for every release after it — and correcting it requires a new tag, whose frozen copy then names the previous one. That loop produced three tags for one gate. Point at the tag list instead. The README on main stays concrete and current. Co-Authored-By: Claude Opus 5 (1M context) Claude-Session: https://claude.ai/code/session_013ZcazeseXVpu8XrYA2tE1V --- check-dead-code.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/check-dead-code.sh b/check-dead-code.sh index a8d604d..5ad1db0 100755 --- a/check-dead-code.sh +++ b/check-dead-code.sh @@ -5,10 +5,14 @@ # Consumed by other repos as a pre-commit hook, pinned by rev: # # - repo: https://github.com/offworldlabs/ops -# rev: dead-code-v1.0 +# rev: # hooks: # - id: dead-code # +# No version is named here on purpose. This file is frozen inside whatever tag +# a consumer pinned, so any version written here is guaranteed wrong for every +# release after it. The README on main is the current reference. +# # Do not vendor this file. Change it here, publish a dead-code-v. # tag (the dot matters — pre-commit warns "mutable reference" without one), then # bump rev in the consumers (`pre-commit autoupdate` does that for you).