Skip to content
New issue

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

Fix galaxy requirement.yml paths #2001

Merged

Conversation

tinyoverflow
Copy link
Contributor

@tinyoverflow tinyoverflow commented May 7, 2024

This PR proposes a change to the way of how the path of the Ansible Galaxy requirements.txt is resolved.

For roles, it uses the base path of the cloned repository. This PR does NOT change that, but it updates the code to use the path library instead of string concatenation to build the path.

For collections, Semaphore uses the path of the playbook file as a base path to locate the requirements.txt. This is counterintuitive to the roles. Therefore, this PR changes this behaviour to also use the base path of the cloned repository.

This is especially useful when people have their playbooks inside a subfolder.

@fiftin fiftin merged commit e04d013 into semaphoreui:develop May 19, 2024
4 checks passed
@tinyoverflow tinyoverflow deleted the fix/galaxy-requirements-paths branch May 20, 2024 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants