-
Notifications
You must be signed in to change notification settings - Fork 104
unrelated files provided in collection release #29
Comments
I don't know if it is possible to ignore directories and files when doing a |
@bmillemathias yikes! I did it from my Mac, which is why the .DS_Store files were there. And I had run some tests, which is likely why those other files were there. But we should definitely ignore things like .DS_Store files and test artifacts when building and publishing (no matter what system it's done from). I'm looking at the docs to see if there's a way to ignore things (e.g. similar to gitignore). |
Hmm... from the Building collections docs:
|
Here's one way to do it—basically a manual pruning of everything pre-release: https://github.com/mattclay/ansible-collection-aws/blob/master/Makefile I could run |
Opened upstream issue: ansible/ansible#67543 I also just found ansible/ansible#67130 which seems to suggest there's a |
I think the documentation is out-of-date. Globbing works for build_ignore docs in the default galaxy.yml template:
Edit - Oh, the docs are actually right if you look at docs/docsite/rst/dev_guide/developing_collections.rst. They just haven't been updated on the docs site. |
@s-hertel thanks for the update; I think the fix, then, is to make sure whomever is building the artifact uses devel (until it's in a public release) and we should add at least the test files and the macOS files to the (Long term, I would like to make it so the releases are built in CI as part of a tag + release process—but that requires a key to be stored somewhere and right now the only key I have is my personal Galaxy key, which I'd rather not upload into GitHub's secret store. |
Opened related issue #43 |
PR for this: #85 |
Fixes #29: Make sure release instructions ignore extra files in repo.
SUMMARY
ISSUE TYPE
COMPONENT NAME
I just did a
ansible-galaxy collection install community.kubernetes
and look what was provided and found such files.and also .DStore
ANSIBLE VERSION
N/A
CONFIGURATION
N/a
OS / ENVIRONMENT
N/a
The text was updated successfully, but these errors were encountered: