From 4c35dc9b63770a65dc4fae6d9123d9ab358673fd Mon Sep 17 00:00:00 2001 From: Krzysztof kuhy Rudnicki Date: Fri, 11 Sep 2026 18:46:33 +0200 Subject: [PATCH] Re-point paths for the ~ reorganisation (home-tidy) Co-Authored-By: Claude Opus 5 (1M context) Claude-Session: https://claude.ai/code/session_01AwtowrowDXx6ccmWVPkCaF --- _installer_import/.pre-commit-config.yaml | 2 +- _installer_import/TODO-file-length-250.md | 4 ++-- _installer_import/install.sh | 2 +- _installer_import/scripts/check_dependency_freshness.sh | 6 +++--- _installer_import/scripts/check_md_naming.sh | 6 +++--- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/_installer_import/.pre-commit-config.yaml b/_installer_import/.pre-commit-config.yaml index 9c1a169..e76039b 100644 --- a/_installer_import/.pre-commit-config.yaml +++ b/_installer_import/.pre-commit-config.yaml @@ -8,7 +8,7 @@ repos: hooks: # Four markdown namespaces (README / CLAUDE* / DOCS* / TODO*), plus the # rule that a TODO carries "REMOVE ME AFTER FINISH" and nothing else may. - # Shared gate in ~/utils owns the namespaces and the exemption list, so + # Shared gate in ~/src/utils owns the namespaces and the exemption list, so # one repo's idea of a valid name cannot drift from every other repo's. - id: md-naming name: markdown naming convention diff --git a/_installer_import/TODO-file-length-250.md b/_installer_import/TODO-file-length-250.md index 95a5f86..9f33c98 100644 --- a/_installer_import/TODO-file-length-250.md +++ b/_installer_import/TODO-file-length-250.md @@ -61,7 +61,7 @@ an exempt extension, no `# noqa`-style suppressions. A refactor without a gate silently regrows. Before this task is done: -1. Wire the shared gate `~/utils/scripts/check_file_length.sh` into this repo's +1. Wire the shared gate `~/src/utils/scripts/check_file_length.sh` into this repo's `.pre-commit-config.yaml` as a local hook. If the repo has no pre-commit config, add a minimal one. 2. The hook checks **files in the commit** (not the whole tree), so unrelated @@ -72,7 +72,7 @@ A refactor without a gate silently regrows. Before this task is done: ## Done condition -- `bash ~/utils/scripts/check_file_length.sh --all` from this repo root exits 0. +- `bash ~/src/utils/scripts/check_file_length.sh --all` from this repo root exits 0. - The repo's own test suite and coverage bar are still green. - `pre-commit run --files ` passes. - A deliberately over-250-line test file, staged, makes `git commit` **fail**. diff --git a/_installer_import/install.sh b/_installer_import/install.sh index e41cbe9..491fc39 100755 --- a/_installer_import/install.sh +++ b/_installer_import/install.sh @@ -11,7 +11,7 @@ readonly SCRIPT_DIR missing=0 if ! command -v depotdownloader >/dev/null 2>&1; then - echo "missing: depotdownloader (see ~/depotdownloader)" >&2 + echo "missing: depotdownloader (see ~/vendor/depotdownloader)" >&2 missing=1 fi diff --git a/_installer_import/scripts/check_dependency_freshness.sh b/_installer_import/scripts/check_dependency_freshness.sh index 5cb0d78..7715d3c 100755 --- a/_installer_import/scripts/check_dependency_freshness.sh +++ b/_installer_import/scripts/check_dependency_freshness.sh @@ -3,7 +3,7 @@ # ============================================================================ # Fail if any dependency in the commit is behind its ecosystem's newest stable. # -# Thin delegate to the shared gate in ~/utils, which owns the registry +# Thin delegate to the shared gate in ~/src/utils, which owns the registry # adapters, the pre-release rules and the allowlist semantics. Copying that # logic here is what lets one repo's idea of "current" drift from every other # repo's -- so this script only locates the shared checker and forwards its @@ -18,12 +18,12 @@ set -euo pipefail -readonly SHARED_GATE="${UTILS_ROOT:-$HOME/utils}/scripts/check_dependency_freshness.sh" +readonly SHARED_GATE="${UTILS_ROOT:-$HOME/src/utils}/scripts/check_dependency_freshness.sh" main() { if [[ ! -x "$SHARED_GATE" ]]; then echo "Error: shared dependency-freshness gate not found at $SHARED_GATE" >&2 - echo " Clone github.com/kuhyx/utils to ~/utils, or set" >&2 + echo " Clone github.com/kuhyx/utils to ~/src/utils, or set" >&2 echo " UTILS_ROOT to where it lives." >&2 exit 1 fi diff --git a/_installer_import/scripts/check_md_naming.sh b/_installer_import/scripts/check_md_naming.sh index 50deaa0..7847c56 100755 --- a/_installer_import/scripts/check_md_naming.sh +++ b/_installer_import/scripts/check_md_naming.sh @@ -3,7 +3,7 @@ # ============================================================================ # Fail if any markdown file breaks the shared naming convention. # -# Thin delegate to the shared gate in ~/utils, which owns the four namespaces +# Thin delegate to the shared gate in ~/src/utils, which owns the four namespaces # (README / CLAUDE* / DOCS* / TODO*), the "REMOVE ME AFTER FINISH" marker rule # and the exemption list. Copying that logic here is what lets one repo's idea # of a valid name drift from every other repo's -- so this script only locates @@ -16,12 +16,12 @@ set -euo pipefail -readonly SHARED_GATE="${UTILS_ROOT:-$HOME/utils}/scripts/check_md_naming.sh" +readonly SHARED_GATE="${UTILS_ROOT:-$HOME/src/utils}/scripts/check_md_naming.sh" main() { if [[ ! -x "$SHARED_GATE" ]]; then echo "Error: shared markdown-naming gate not found at $SHARED_GATE" >&2 - echo " Clone github.com/kuhyx/utils to ~/utils, or set" >&2 + echo " Clone github.com/kuhyx/utils to ~/src/utils, or set" >&2 echo " UTILS_ROOT to where it lives." >&2 exit 1 fi