Summary
The –keep-scm-meta argument is useful during local development of collections as it permits bugfixes to be made to collection, and pushed easily.
Issue Type
Feature Idea
Component Name
ansible-galaxy
Additional Information
The collection git feature was implemented in #61680, but persisting the .git
folder should be optional IMO, just as it is for roles currently.
Having the .git
metadata is a crucial part of my current ansible-galaxy 2.9 role-based development process.
I plan to move towards collections in the future, but I believe this should be a feature handled by ansible-galaxy rather than an arbitrary bash script to keep dependencies in sync.
The code in question is available here:
ansible/lib/ansible/utils/galaxy.py
Lines 37 to 38
in
a077bca
compared to role’s:
ansible/lib/ansible/playbook/role/requirement.py
Lines 126 to 128
in
25792d2
Hopefully this is something that can be implemented in the near future.
We have discussed this and have decided this is not something we are going to pursue. We do not simply clone a git repo for collections, instead we clone it, build an artifact, and then install that artifact.
Instead, you will want to just clone the repo into the correct path for ansible to see it, instead of relying on
ansible-galaxy
to perform the installation.If you have further questions please stop by IRC or the mailing list: