ansible / tox-ansible

The tox-ansible plugin dynamically creates a full matrix of python interpreter and ansible-core version environments for running integration, sanity, and unit for an ansible collection both locally and in a Github action. tox virtual environments are leveraged for collection building, collection installation, dependency installation, and testing.
https://ansible.readthedocs.io/projects/tox-ansible/
MIT License
55 stars 18 forks source link

Failure on MacOS since cp does not support --parents #246

Open ClausHolbechArista opened 11 months ago

ClausHolbechArista commented 11 months ago

Hi team tox-ansible fails on MacOS with an error for cp not supporting --parents.

This line: https://github.com/ansible/tox-ansible/blob/d9c7d08dba0d9d01de0ceb38ce17596bb28fe648/src/tox_ansible/plugin.py#L464

contains --parents which is not supported on MacOS. ~Changing to -p should solve it for all platforms.~ -p is not doing the same, so on MacOS ppl would have to install GNU cp.

Can you look into other alternatives to make this more portable?

Thanks

ssbarnea commented 2 weeks ago

More portable would be to use a pure python approach and avoid using cp or rsync which both have their own portability issues.