Repository navigation
build: the shell gate follows Declare-BashScript, and discovers through the git tree (#863) - #870
Merged
David-Noble-at-work merged 1 commit intoSep 8, 2026
Conversation
…gh the git tree (#863) make check failed locally on every script that sources Declare-BashScript while CI was green: the gate passed no -P, so shellcheck never followed the source and reported the helper's variables as unassigned. It now passes -P "${DECLARE_BASHSCRIPT_DIR:-$HOME/.local/bin}", the line personal's copy of this script has carried since its own move. Measuring that turned up a second defect. Discovery was a filesystem walk, so in a built clone the gate read 55,153 files to find 43 -- build/ alone is 1.1 GB -- and linted whatever was lying around, which made its answer depend on build state rather than on what CI checks out. Discovery is now the git tree: 43 files, 11.7 seconds, reproducible. Not the swap this issue proposed. Measured over tracked files, the script finds 52 shell scripts by shebang and star lint shell finds 11 by extension, so swapping and deleting the script would drop 41 from every check -- .githooks/pre-commit among them -- and star lint shell .githooks answers "No shell files found" with exit 0, so the loss would be silent. docs/plans/shell-lint-via-star.md (#672) warns against that ordering and its steps 1-5 are undone. The corollary is recorded there: CI is the weaker gate, not local, which is #670 pointing the other way. Claude-Session: https://claude.ai/code/session_01BTCnSyUbYFFUKMD3PuF1vt
David-Noble-at-work
deleted the
feature/863-shell-lint-follows-the-helper
branch
September 8, 2026 22:25
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #863.
-P "${DECLARE_BASHSCRIPT_DIR:-$HOME/.local/bin}", aspersonal's copy already does, somake checkand CI agree on every script that sources the base layer'sDeclare-BashScriptbuild/alone is 1.1 GBNot the swap the issue proposed
Measured over tracked files: the script finds 52 shell scripts by shebang,
star lint shellfinds 11 by extension. Swappingmake shell-lintto star and deleting the script would drop 41 from every check —.githooks/pre-commit,New-DevloreKeyVaults, and all of #855's fixtures — andstar lint shell .githooksanswersNo shell files foundwith exit 0, so the loss would be silent.docs/plans/shell-lint-via-star.md(#672) warns against that ordering; its steps 1–5 are undone. The corollary: CI is the weaker gate, not local — #670 pointing the other way. Both recorded on #863 and left with #672.Test plan
make checkclean on develop's head with a deployed helper.githooks/pre-commitis among themgit ls-files -zwithread -d ''handles a path with a space or newline; a tracked-but-deleted path is skippedhttps://claude.ai/code/session_01BTCnSyUbYFFUKMD3PuF1vt