chore(dev): move the dev tools from .venv to .venv-dev
uv uses .venv as its project environment, and `uv sync --frozen` removes every package that is not in uv.lock. The tools the git hooks need would go with it, so they get a directory of their own. Re-running scripts/dev-setup.sh switches the hooks of an older clone and leaves its .venv alone. Ignore rules and prunes cover both directories. Refs: #516 Assisted-by: Claude Code
This commit is contained in:
1 parent
b7b763e1fa
commit
f62097a748
12 files changed
+51
-23
No files matched your search
@@ -94,13 +94,13 @@ jobs:
|
||||
# ansible-galaxy dereferences symlinks when it builds, so a symlink in the source tree
|
||||
# reaches the archive as a regular file with the target's content, where
|
||||
# scripts/check_tarball.py cannot see it. Refuse them in the tree instead: this step
|
||||
# is the only guard against a file symlink. The two -prune paths below (./.venv,
|
||||
# ./.git) are skipped only because the build skips them too (galaxy.yml build_ignore,
|
||||
# is the only guard against a file symlink. The -prune paths below (./.git, ./.venv,
|
||||
# ./.venv-dev) are skipped only because the build skips them too (galaxy.yml build_ignore,
|
||||
# and ansible-galaxy's own .git exclusion): the two lists must stay in step, and
|
||||
# tests/scripts/test_check_tarball.py fails when a pruned directory is not ignored.
|
||||
- name: Refuse symlinks in the source tree
|
||||
run: |
|
||||
links="$(find . -path ./.git -prune -o -path ./.venv -prune -o -type l -print)"
|
||||
links="$(find . -path ./.git -prune -o -path ./.venv -prune -o -path ./.venv-dev -prune -o -type l -print)"
|
||||
if [ -n "$links" ]; then
|
||||
echo "::error::symlinks in the source tree would be dereferenced into the Collection archive:"
|
||||
echo "$links"
|
||||
|
||||
Reference in new issue
Block a user