We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue
When I try to install my current collection that has a dependency to a git repository using:
ade install -e . --venv .venv
galaxy.yml
dependencies: {'git@github.com:organization/repo_name.git': 'devel'}
I get this error: Could not find git executable to extract the collection from the Git repository 'git@github.com:organization/repo_name.git'.
Could not find git executable to extract the collection from the Git repository 'git@github.com:organization/repo_name.git'.
Analyzation
I debugged it a bit and I found out that the PATH env variable is empty after ADE is calling ansible-galaxy. ansible-galaxy tries to find the git executable here: https://github.com/ansible/ansible/blob/1b209d742e39900e676e6a43f900801e67cc9154/lib/ansible/galaxy/collection/concrete_artifact_manager.py#L419
What I also tried:
ansible-galaxy collection install "git@github.com:organization/repo_name.git,devel"
The only thing I can see that PATH is empty when ansible-galaxy is called via ADE and that get_bin_path is looking for git in PATH and some other default locations: https://github.com/ansible/ansible/blob/1b209d742e39900e676e6a43f900801e67cc9154/lib/ansible/module_utils/common/process.py#L32
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Issue
When I try to install my current collection that has a dependency to a git repository using:
ade install -e . --venv .venv
galaxy.yml
I get this error:
Could not find git executable to extract the collection from the Git repository 'git@github.com:organization/repo_name.git'.
Analyzation
I debugged it a bit and I found out that the PATH env variable is empty after ADE is calling ansible-galaxy. ansible-galaxy tries to find the git executable here:
https://github.com/ansible/ansible/blob/1b209d742e39900e676e6a43f900801e67cc9154/lib/ansible/galaxy/collection/concrete_artifact_manager.py#L419
What I also tried:
The only thing I can see that PATH is empty when ansible-galaxy is called via ADE and that get_bin_path is looking for git in PATH and some other default locations:
https://github.com/ansible/ansible/blob/1b209d742e39900e676e6a43f900801e67cc9154/lib/ansible/module_utils/common/process.py#L32
The text was updated successfully, but these errors were encountered: