build(dev): install the pinned collections in dev-setup
dev-setup.sh installs requirements.yml into .ansible/collections of the clone and exports ANSIBLE_HOME and ANSIBLE_COLLECTIONS_PATH from the hook scripts, so local ansible-lint resolves the collection versions CI does and not the control host's ~/.ansible (#118, part of #80). The install scopes the path to its target so a copy elsewhere is not skipped as already installed. A hook written by the previous version gains only the new block. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_014uGZTNmHMc85bomfevwUDG
This commit is contained in:
1 parent
12fe748bdd
commit
bb57077fb3
3 files changed
+96
-9
No files matched your search
+4
-2
@@ -15,7 +15,9 @@
|
||||
- Third-party material needs an SPDX header, a `REUSE.toml` annotation (it
|
||||
overrides file headers) and an entry in `NOTICE`.
|
||||
- Set up the tooling once per clone with `scripts/dev-setup.sh`: it creates a virtualenv with
|
||||
the pinned tools (`requirements-dev.txt`) and installs git hooks that find them. Then
|
||||
the pinned tools (`requirements-dev.txt`), installs the pinned collections the roles call
|
||||
(`requirements.yml`, into `.ansible/collections`, so local lint resolves the versions CI does)
|
||||
and installs git hooks that find both. Then
|
||||
`pre-commit run --all-files` before pushing.
|
||||
- Never commit credentials, tokens or key material.
|
||||
- Releases are cut by the maintainer: bump `version` in `galaxy.yml`, add a
|
||||
@@ -25,7 +27,7 @@
|
||||
|
||||
## Dependency and image updates
|
||||
|
||||
- `requirements-dev.txt`, `.pre-commit-config.yaml` and `images/**` are inputs of the CI and
|
||||
- `requirements-dev.txt`, `requirements.yml`, `.pre-commit-config.yaml` and `images/**` are inputs of the CI and
|
||||
molecule images. A pull request that changes one needs a higher `version:` for that image in
|
||||
`.gitea/workflows/image.yml` (`python3 scripts/bump_image_versions.py` makes the edit; the
|
||||
`Check image versions were bumped` step enforces it). After the merge, `image.yml` builds the
|
||||
|
||||
Reference in new issue
Block a user