← Back to issue list

feat: add --base option to the init command

View original Github issue

Metadata

Project
craft-application
Number
#1137
Type
pull request
State
merged
Author
cmatsuoka
Labels
Created
Updated
Closed

Current evaluation

Merged after three approvals and passing CI. Adds a --base option to the init command for specifying profile template variants. A reviewer noted the implementation could be more generic, but the feature was accepted and integrated.

Suggested action:

No scores available.

Issue body

Allow users to specify an optional base when initializing a project using the `--base=<base-name>` option. This maps to profile templates variants named `<profile-name>__<base-name>.j2`. A default profile symlink `<profile-name>` should be provided pointing to one of the base-specific variants to be used when `--base` is not used. - [x] Have you followed the guidelines for contributing? - [x] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)? - [ ] Have you successfully run `make lint && make test`? - [ ] Have you added an entry to the changelog (`docs/reference/changelog.rst`)? --- CRAFT-5252

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Merged after three approvals and passing CI. Adds a --base option to the init command for specifying profile template variants. A reviewer noted the implementation could be more generic, but the feature was accepted and integrated.
qwen/qwen3.6-35b-a3b
Staleness: 10
Complexity: 35
Confidence: 85
needs review Adds a --base option to the init command to select profile template variants. Approved by 3 reviewers, CI mostly passing. Author is discussing renaming the argument to be more generic.
qwen3.6-35b-a3b-mtp-q6
Staleness: 5
Complexity: 25
Confidence: 85
needs review Adds a --base option to the init command to select profile template variants. Currently a fresh submission with unchecked standard PR checkboxes and no maintainer comments or CI results.

Update history

Date Change
updated
updated
updated

Related issues

Issue Project State Summary Similarity
#2873 feat(init): support base-specific profiles charmcraft 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.
76%
#871 feat(init): add 'test' init profile rockcraft merged Merged the addition of a 'test' init profile. Approved by two reviewers, the change was integrated despite four unresolved comments and failing slow tests. Template refinements will be addressed later.
70%