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

LXD snap contains duplicated copies of some python modules #14293

Open
simondeziel opened this issue Oct 17, 2024 · 1 comment
Open

LXD snap contains duplicated copies of some python modules #14293

simondeziel opened this issue Oct 17, 2024 · 1 comment
Assignees
Labels

Comments

@simondeziel
Copy link
Member

The following Python modules are duplicated between LXD's snap and core24:

$ grep -Fxf <(ls -1 /snap/lxd/current/lib/python3/dist-packages/) <(ls -1 /snap/core24/current/usr/lib/python3/dist-packages/) 
certifi
certifi-2023.11.17.egg-info
chardet
chardet-5.2.0.dist-info
idna
idna-3.6.dist-info
PyYAML-6.0.1.dist-info
requests
requests-2.31.0.egg-info
urllib3
urllib3-2.0.7.dist-info
_yaml
yaml

Ideally, those would be removed from LXD's snap and the PYTHONPATH would be augmented to include the /snap/coreXY/current/usr/lib/python3/dist-packages/. Doing that should avoid issues like https://github.com/canonical/lxd/security/code-scanning/693 and https://github.com/canonical/lxd/security/code-scanning/694

@simondeziel simondeziel self-assigned this Oct 17, 2024
@tomponline
Copy link
Member

Sounds like a plan!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants