← Back to issue list

Charm plugins fail to copy source and lib when source-subdir is used

View original Github issue

Metadata

Project
charmcraft
Number
#2839
Type
issue
State
closed
Author
lengau
Labels
—
Created
Updated
Closed

Current evaluation

Fixed by merged PR #2835 (commit 4dd1ae35): Python, Poetry, and uv plugins now copy source and libraries from part_build_subdir.

Resolution: closed resolved

Reason: PR #2835 was merged and directly fixes #2839 by using part_build_subdir for charm source and library copying, with tests and a Charmcraft 4.5 release-note entry.

Evaluated by: mr-cal-bot

No scores available.

Issue body

When a charm uses `source-subdir` (such as in a monorepo), the `poetry`, `python`, and `uv` plugins look for `src/` and `lib/` in `part_build_dir` rather than `part_build_subdir`. This results in the charm's source code and libraries not being copied into the stage/prime directories.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Fixed by merged PR #2835 (commit 4dd1ae35): Python, Poetry, and uv plugins now copy source and libraries from part_build_subdir.
stealth/space-bunny-alpha — closed resolved Fixed by merged PR canonical/charmcraft#2835 (commit 4dd1ae35): poetry, python, and uv now copy charm source and libraries using part_build_subdir when source-subdir is set.
qwen/qwen3.6-35b-a3b — — Closed without resolution. The poetry, python, and uv plugins incorrectly referenced part_build_dir instead of part_build_subdir when source-subdir was configured, blocking source and library copying to stage/prime.
qwen/qwen3.6-35b-a3b
Staleness: 0
Complexity: 45
Confidence: 90
Support Request: 10
needs triage Charm plugins incorrectly resolve source/lib paths when source-subdir is used, preventing code from copying to stage/prime. Currently unlabelled and awaiting maintainer triage.

Update history

Date Change
closed
created

Related work

  • Likely Fixed By: canonical/charmcraft#2835 (confidence 100%)

    Merged fix updating the affected plugins and adding regression coverage.

Related issues

Issue Project State Summary Similarity
#2835 fix(plugins): use part_build_subdir for charm source copy charmcraft merged Merged as charmcraft#2835 (4dd1ae35), fixing #2839 by using part_build_subdir for charm source and library copying in the Python, Poetry, and uv plugins.
85%