Skip to content

Commit ba6db74

Browse files
authored
fix: expose ansible-galaxy on the uv tool-install path (#5124)
Signed-off-by: Jeff Pullen <9343691+jeffcpullen@users.noreply.github.com> Co-authored-by: Jeff Pullen <9343691+jeffcpullen@users.noreply.github.com>
1 parent 43b00b5 commit ba6db74

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

action.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,8 @@ runs:
101101
# SETUPTOOLS_SCM_PRETEND_VERSION=${{ github.action_ref || 'main' }}
102102
run: |
103103
if [[ "${{ inputs.setup_python }}" == "true" ]]; then
104-
uv tool install --python ${{ inputs.python_version }} "ansible-lint[lock] @ git+https://github.com/ansible/ansible-lint@$GH_ACTION_REF"
104+
# --with-executables-from requires uv >= 0.8.5 (provided by setup-uv latest above)
105+
uv tool install --python ${{ inputs.python_version }} --with-executables-from ansible-core "ansible-lint[lock] @ git+https://github.com/ansible/ansible-lint@$GH_ACTION_REF"
105106
else
106107
echo "setup_python is false, using pip"
107108
pip install "ansible-lint[lock] @ git+https://github.com/ansible/ansible-lint@$GH_ACTION_REF"

0 commit comments

Comments
 (0)