`python` and `poetry` plugins include `lib64` symlink as a second copy of the venv
Metadata
Current evaluation
Fixed by merged PR #1968 (commit dd636296): get_venv_cleanup_commands() in charmcraft/utils/parts.py now removes the venv lib64 symlink if it is a symlink, leaving real dirs intact. Integration and unit tests added.
Resolution: closed resolved
Reason: PR #1968 by lengau was merged as commit dd636296, adding a lib64-symlink removal step to the python/poetry venv cleanup in charmcraft/utils/parts.py. Integration tests in tests/integration/parts/plugins/test_python.py and test_poetry.py assert the venv lib64 symlink is no longer packed.
Evaluated by: mr-cal-bot
Issue body
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Fixed by merged PR #1968 (commit dd636296): get_venv_cleanup_commands() in charmcraft/utils/parts.py now removes the venv lib64 symlink if it is a symlink, leaving real dirs intact. Integration and unit tests added. | |
| stealth/space-bunny-alpha | — | closed resolved | Merged #1968 (dd636296) to exclude the virtual-environment lib64 symlink from python and poetry charms. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | The python and poetry plugins incorrectly copy the lib64 symlink as a duplicate directory. The report was closed without a fix or discussion, indicating it was abandoned. | |
| qwen/qwen3.6-35b-a3b | — | — | The python and poetry plugin lib64 symlink bug was closed without a fix. Activity was limited to an automated Jira sync, suggesting the report was abandoned or deferred to internal tracking. | |
| qwen/qwen3.6-35b-a3b | — | — | Abandoned. The report described python and poetry plugins duplicating the venv lib directory via a lib64 symlink. No fix was implemented, and the ticket was closed after syncing to internal Jira tracking. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Closed without a fix or pull request. No developer response or resolution was provided, indicating the report was likely abandoned or marked stale after the initial bug description. |
Update history
No update history recorded yet.
Related work
-
Likely Fixed By:
canonical/charmcraft#1968
(confidence 99%)
Merged PR titled 'fix(python,poetry): remove duplicate files in the charm' (dd636296), explicitly closing #1966.
-
Related To:
canonical/charmcraft#2864
(confidence 45%)
Later commit 430ee59a 'fix: exclude .venv and .tox from source pull' addresses the same class of duplicate-file problem in pulled sources.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1968 fix(python,poetry): remove duplicate files in the charm | charmcraft | merged | PR #1968 by lengau merged (commit dd636296), adding venv cleanup that removes the lib64 symlink so python/poetry charms no longer pack duplicate files; closes issue #1966. | |
| #1899 feat: add Python and Poetry plugins | charmcraft | merged | Merged into main via commit 8b748f3e, adding Charmcraft-specific Python and Poetry plugins with charm-oriented venv, pip, source-copy, and binary defaults. |