Support referencing sibling directories of project root
Metadata
Current evaluation
Feature request to build charms from a monorepo by mounting the whole git repo (sibling dirs like shared-lib) instead of only the charmcraft.yaml dir. Triaged, actively discussed; an experimental git-driven build root (CHARMCRAFT_EXPERIMENTAL_MONOREPO) has since landed.
Suggested action: keep open
Reason: Labelled Status: Triaged and actively discussed (6 comments, last activity 86 days ago) with multiple maintainers and users (Valkey, Sunbeam's 80-charm monorepo, Cargo workspaces) expressing strong need. A related experimental implementation (CHARMCRAFT_EXPERIMENTAL_MONOREPO, PR #2836) has landed in the codebase, but it is opt-in/experimental and not the finalized top-level project-root design discussed in-thread, so the issue remains a valid open feature request.
Issue body
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.8-27b |
Impact:
80
Quick Win:
24.0
Staleness:
15
Complexity:
70
Confidence:
75
Support Request:
10
|
keep open | Feature request to build charms from a monorepo by mounting the whole git repo (sibling dirs like shared-lib) instead of only the charmcraft.yaml dir. Triaged, actively discussed; an experimental git-driven build root (CHARMCRAFT_EXPERIMENTAL_MONOREPO) has since landed. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
25
Complexity:
60
Confidence:
90
Support Request:
5
|
keep open | Feature request to enable referencing sibling directories via a new project-root configuration. Currently triaged with active maintainer design discussions and multiple user endorsements. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
30
Complexity:
65
Confidence:
85
Support Request:
10
|
keep open | Feature request to allow charmcraft to reference sibling directories via a project root configuration. Currently triaged with active design discussions and maintainer feedback on implementation approach. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
15
Complexity:
70
Confidence:
90
Support Request:
5
|
keep open | Feature request to allow charms to reference sibling directories via a project-root configuration. Triaged, under active discussion with design proposals and strong community interest. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
15
Complexity:
65
Confidence:
90
Support Request:
0
|
keep open | Proposes a project-root setting to let monorepo charms reference sibling directories like shared libraries. Triaged and currently under design discussion for implementation in craft-application. Last updated 18 days ago. |
Update history
No update history recorded yet.
Related work
-
Related To:
canonical/charmcraft#1079
(confidence 85%)
Referenced in the issue body as a limitation this feature would fix (symlinks to external files ignored).
-
Related To:
canonical/rockcraft#959
(confidence 85%)
Referenced in the issue body as a cross-craft limitation (custom build contexts for multi-rock repos).
-
Likely Fixed By:
canonical/charmcraft#2836
(confidence 60%)
Commit e06d40c1 'feat: opt into git-driven build root via CHARMCRAFT_EXPERIMENTAL_MONOREPO' implements mounting the git root, matching the core request, though still experimental/opt-in.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #2836 feat: opt into git-driven build root via CHARMCRAFT_EXPERIMENTAL_MONOREPO | charmcraft | merged | Merged. Adds CHARMCRAFT_EXPERIMENTAL_MONOREPO env var to enable a git-driven build root. When set, it configures allow_git_build_root=True, mounting the repository root as the build directory for monorepo support. Fixes CHARMCRAFT-710 and CHARMCRAFT-720. | |
| #1079 Do not ignore symlinks to external files | charmcraft | open | Request to include symlinks pointing outside the charm project directory in packed charms (monorepo shared files). Behavior is intentional and tested; a recent experimental monorepo build-root feature (PR #2836) may address the underlying use case. |