feat(init): support base-specific profiles
Metadata
Current evaluation
PR #2873 merged: charmcraft init migrated to craft-application's generic init flow, adding --base selection of base-specific <profile>__<base> templates (Ubuntu 26.04 frameworks; 24.04 stays default).
Resolution: closed resolved
Reason: The pull request was merged after approval by three reviewers; it delegates base validation, variant selection, collision checks and rendering to craft-application while keeping a Charmcraft-specific init service for author metadata, module naming and executable modes. Per @lengou's comment, tests/spread/commands/init-extensions/task.yaml was extended to run on Ubuntu 24.04/26.04 and pass --base.
Evaluated by: mr-cal-bot
No scores available.
Issue body
Charmcraft has Ubuntu 26.04 framework templates, but users cannot select them through `charmcraft init`. This migrates Charmcraft to the generic craft-application init flow so profiles can expose base-specific variants through `--base`.
The command now discovers profiles from versioned `<profile>__<base>` template directories and delegates base validation, variant selection, collision checks, and rendering to craft-application. A Charmcraft-specific init service preserves charm author metadata, class and workload module naming, executable modes, existing output guidance, and compatibility options. Ubuntu 24.04 remains the default, while the six framework profiles can select Ubuntu 26.04 explicitly.
Validation includes the fast and slow init suites, application integration tests, linting, CLI smoke tests, and wheel template inspection. The documentation build remains blocked by the pre-existing isolated-environment failure to import `craft_parts_docs` from `docs/conf.py`.
---
- [ ] I've followed the [contribution guidelines](https://github.com/canonical/charmcraft/blob/main/CONTRIBUTING.md).
- [ ] I've signed the [CLA](http://www.ubuntu.com/legal/contributors/).
- [ ] I've successfully run `make lint && make test`.
- [x] I've added or updated any relevant documentation.
- [x] In documents I changed, I [added a meta description](https://canonical-starflow.readthedocs-hosted.com/how-to/add-a-page-meta-description/) if one was missing.
- [x] I've updated the relevant release notes.
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | PR #2873 merged: charmcraft init migrated to craft-application's generic init flow, adding --base selection of base-specific <profile>__<base> templates (Ubuntu 26.04 frameworks; 24.04 stays default). | |
| stealth/space-bunny-alpha | — | closed resolved | Merged canonical/charmcraft#2873, adding init --base selection for base-specific profiles via craft-application, including Ubuntu 26.04 framework templates while retaining Ubuntu 24.04 as default. | |
| qwen/qwen3.6-35b-a3b |
Impact:
45
Quick Win:
20
Staleness:
5
Complexity:
55
Confidence:
75
|
needs review | Adds base-specific profile support to charmcraft init via craft-application integration. Approved by 2 reviewers with 6 unresolved comments; CI mostly passing with 3 failing snap-tests on specific Ubuntu versions. | |
| qwen/qwen3.6-35b-a3b |
Impact:
55
Quick Win:
19
Staleness:
15
Complexity:
65
Confidence:
75
|
needs review | Adds base-specific profile support to charmcraft init, migrating to craft-application's init flow. Has 2 approvals but 6 unresolved review comments and a maintainer requesting test changes; CI fails on Ubuntu 20.04, 22.04, and 25.10. | |
| qwen/qwen3.6-35b-a3b |
Impact:
45
Quick Win:
20
Staleness:
5
Complexity:
55
Confidence:
75
|
needs review | Adds base-specific profile support to charmcraft init, allowing users to select Ubuntu 26.04 framework templates via --base flag. Approved by 1 reviewer with most CI passing. | |
| qwen/qwen3.6-35b-a3b |
Impact:
60
Quick Win:
21
Staleness:
10
Complexity:
65
Confidence:
75
|
needs review | Adds base-specific profile support to charmcraft init via craft-application integration. Has 1 approval but CI failing on multiple test suites; reviewer @lengau requested spread test modifications. | |
| qwen/qwen3.6-35b-a3b |
Impact:
55
Quick Win:
19
Staleness:
10
Complexity:
65
Confidence:
70
|
needs review | Adds base-specific profile support to charmcraft init, migrating to craft-application's init flow. Approved by 1 reviewer but has failing CI tests and a maintainer comment requesting test modifications. | |
| qwen/qwen3.6-35b-a3b |
Impact:
45
Quick Win:
20
Staleness:
10
Complexity:
55
Confidence:
65
|
keep open | Adds base-specific profile support to `charmcraft init` via `--base` flag, enabling Ubuntu 26.04 framework template selection. Approved by 1 reviewer with 0 unresolved comments, but CI has failures on some Ubuntu versions and minimum dependencies. | |
| qwen/qwen3.6-35b-a3b |
Impact:
60
Quick Win:
21
Staleness:
5
Complexity:
65
Confidence:
75
|
needs review | Adds base-specific profile support to charmcraft init, migrating to craft-application's init flow for Ubuntu 26.04 framework templates. Under active review with maintainer requesting test changes. | |
| qwen/qwen3.6-35b-a3b |
Impact:
55
Quick Win:
19
Staleness:
10
Complexity:
65
Confidence:
75
|
needs review | Adds base-specific profile support to charmcraft init, migrating to craft-application init flow for Ubuntu 24.04/26.04 base variants. Under review with maintainer requesting test updates. | |
| qwen/qwen3.6-35b-a3b |
Impact:
45
Quick Win:
16
Staleness:
5
Complexity:
65
Confidence:
75
|
needs review | Adds base-specific profile support to charmcraft init via craft-application migration, enabling Ubuntu 26.04 framework templates. Under review with maintainer requesting test updates. | |
| qwen/qwen3.6-35b-a3b |
Impact:
55
Quick Win:
19
Staleness:
10
Complexity:
65
Confidence:
75
|
needs review | Adds base-specific profile support to charmcraft init via --base flag, migrating to craft-application init flow. Fresh PR with maintainer requesting test updates; CI mostly passing. | |
| qwen/qwen3.6-35b-a3b |
Impact:
65
Quick Win:
20
Staleness:
5
Complexity:
70
Confidence:
80
|
needs review | Adds base-specific profile support to charmcraft init, migrating to craft-application's init flow for Ubuntu 26.04 framework templates. Fresh PR with pending CI and one maintainer review comment requesting test modifications. | |
| qwen/qwen3.6-35b-a3b |
Impact:
45
Quick Win:
16
Staleness:
10
Complexity:
65
Confidence:
65
|
needs review | Adds base-specific profile support to charmcraft init via craft-application integration, discovering versioned template directories and delegating base validation. Fresh PR with 0 reviewers, 2 unresolved comments, and CI failing on Ubuntu 20.04/22.04/25.10. | |
| qwen/qwen3.6-35b-a3b |
Impact:
55
Quick Win:
19
Staleness:
5
Complexity:
65
Confidence:
70
|
needs review | Adds base-specific profile support to charmcraft init, delegating to craft-application. Fresh PR with 0 reviewers, 2 unresolved review comments, and 3 failing CI tests on specific Ubuntu versions. | |
| qwen/qwen3.6-35b-a3b |
Impact:
55
Quick Win:
19
Staleness:
5
Complexity:
65
Confidence:
65
|
needs review | Adds base-specific profile support to charmcraft init by delegating to craft-application's init flow, enabling Ubuntu 26.04 framework templates via --base flag | |
| qwen3.6-35b-a3b-mtp-q6 |
Impact:
55
Quick Win:
14
Staleness:
0
Complexity:
75
Confidence:
65
|
needs review | Adds base-specific profile support to charmcraft init by migrating to craft-application flow, enabling Ubuntu 26.04 framework template selection via --base flag. | |
| qwen3.6-35b-a3b-mtp-q6 |
Impact:
60
Quick Win:
15
Staleness:
0
Complexity:
75
Confidence:
75
|
needs review | Adds base-specific profile support to charmcraft init, enabling Ubuntu 26.04 framework templates via --base flag. Migrates to craft-application init flow. 107 files changed, CI tests pending. | |
| qwen3.6-35b-a3b-mtp-q6 |
Impact:
65
Quick Win:
18
Staleness:
0
Complexity:
72
Confidence:
75
|
needs review | Adds base-specific profile support to charmcraft init via craft-application integration, enabling Ubuntu 26.04 template selection with --base flag. Fresh PR pending maintainer review. |
Update history
| Date | Change |
|---|---|
| updated | |
| closed | |
| updated | |
| updated | |
| updated | |
| updated | |
| updated | |
| updated | |
| updated | |
| updated | |
| updated | |
| updated | |
| updated | |
| updated | |
| updated | |
| updated | |
| updated | |
| updated | |
| updated | |
| updated | |
| updated | |
| updated | |
| updated | |
| created |
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1137 feat: add --base option to the init command | craft-application | merged | Merged in canonical/craft-application#1137 (commit b79989ab), adding init --base profile-variant selection and default profile symlinks; released in 7.2.0. | |
| #854 Created the profile option for the init command (CRAFT-1317). | charmcraft | merged | Merged PR #854 as commit 21b83fb0, adding an optional charmcraft init profile that defaults to simple and updating its scaffold template for CRAFT-1317. | |
| #1364 feat(init): support Ubuntu 26.04 base templates | rockcraft | merged | Merged canonical/rockcraft#1364 adds Ubuntu 26.04 templates and base-aware init support, with profile-specific parts, tzdata, and unit/Spread coverage. |