fix(dev): run ansible-lint against the clone's pinned collections from any shell
The hook scripts written by dev-setup.sh exported ANSIBLE_HOME and ANSIBLE_COLLECTIONS_PATH, so only a hook run through git commit saw the pinned collections; a bare pre-commit run fell back to the control host's ~/.ansible, the drift #118 removes. The ansible-lint hook now runs scripts/ansible-lint.sh, which uses .ansible/collections of the clone when ANSIBLE_COLLECTIONS_PATH is unset, fails with the fix when they are missing, and leaves a preset path (CI's /opt/collections) alone. dev-setup.sh keeps installing the collections and no longer edits the hook scripts beyond the PATH block it always wrote. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_014uGZTNmHMc85bomfevwUDG
This commit is contained in:
1 parent
42ad8de88f
commit
bdb34cf98e
7 files changed
+123
-53
No files matched your search
@@ -81,6 +81,7 @@ IGNORED = (
|
||||
"scripts/check_bot_pr_diff.py",
|
||||
"scripts/check_image_versions.py",
|
||||
"scripts/check_tarball.py",
|
||||
"scripts/ansible-lint.sh",
|
||||
"scripts/dev-setup.sh",
|
||||
"scripts/reuse_lint.py",
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user