ansible-collections / community.general

Ansible Community General Collection
https://galaxy.ansible.com/ui/repo/published/community/general/
GNU General Public License v3.0
784 stars 1.45k forks source link

[PR #8480/69b72e4a backport][stable-9] `cargo` module install from source in a given directory #8527

Closed patchback[bot] closed 2 weeks ago

patchback[bot] commented 2 weeks ago

This is a backport of PR #8480 as merged into main (69b72e4a8ea1111503d9528f179d5338657426cc).

SUMMARY

Adds the ability to install a Cargo package from a source directory.

Fixes #6298

ISSUE TYPE
COMPONENT NAME

cargo

ADDITIONAL INFORMATION

Although #7895 adds a basic capability to install from a source directory, this PR goes beyond that work by considering how to handle versioning, and upgrades, in addition to adding testing. It is largely compatible with the aforementioned PR.

The reason I didn't opt to work from #7895 is that it has a relatively large scope, which I suspect may have made it a little difficult to merge. Merging this scope limited work in first offers a way of getting the functionality in sooner, and reduces the scope of what's new in #7895.