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

Published Galaxy Artifact contains Python site-packages #1

Open
sivel opened this issue Apr 28, 2020 · 1 comment
Open

Published Galaxy Artifact contains Python site-packages #1

sivel opened this issue Apr 28, 2020 · 1 comment

Comments

@sivel
Copy link

sivel commented Apr 28, 2020

Hi! I just wanted to reach out to let you know that the published collection artifact at https://galaxy.ansible.com/lordoftheflies/ansible_collection_sdlc contains a full python site-packages directory, including a full Ansible installation.

An example file path:

.env/lib/python3.7/site-packages/ansible/release.py

You may need to take advantage of the build_ignore keyword inside of galaxy.yml to ensure that your .env directory is not included in the build artifact: https://github.com/ansible/ansible/blob/devel/docs/docsite/rst/dev_guide/developing_collections.rst#ignoring-files-and-folders

However, that build_ignore is only utilized in the upcoming Ansible 2.10 release.

If you are using Ansible 2.9 to build the collection, you may have to modify the build artifact, or use a different approach for where you install your dependencies.

@lordoftheflies
Copy link
Owner

lordoftheflies commented May 28, 2020 via email

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

No branches or pull requests

2 participants