Charmcraft init migrated to InitService
Metadata
Current evaluation
Bounty closed after proposals stalled and no implementation was linked; @mr-cal announced its closure. PR #2873 later delivered the visible InitCommand/InitService migration.
Resolution: closed stale
Reason: On 2026-01-21, @mr-cal closed the bounty without linking a resolving PR, stating only that it had been closed. Commit 3eb45f3a in PR #2873 appears to implement the migration later rather than explain this closure.
Evaluated by: mr-cal-bot
No scores available.
Issue body
### What needs to get done
Replace the current [`init` command](https://github.com/canonical/charmcraft/blob/main/charmcraft/application/commands/init.py) in Charmcraft with the [craft-application `init` command](https://github.com/canonical/craft-application/blob/main/craft_application/commands/init.py), extending the craft-application command and the [InitService](https://github.com/canonical/craft-application/blob/main/craft_application/services/init.py) to make this possible.
#### Acceptance Criteria
* All existing args must be accepted. However:
* The `--author` argument (and the general GECOS info) is no longer used and may simply output a warning that it’s not used.
* `--force` can similarly be replaced with a warning. (The craft-application behaviour of initing a project even if files exist in this directory as long as they’re not overwritten is acceptable as the default, so the behaviour of `--force` becomes the default behaviour)
* The command must accept either the positional `project_dir` as in craft-application or `--project-dir` as in existing charmcraft, with a migration note for users.
* `--project-dir` should be removed from the help and documentation
* Extend the craft-application InitService to be able to rename template files, similar to how it’s implemented in [https://github.com/canonical/charmcraft/pull/2242](https://github.com/canonical/charmcraft/pull/2242)
* This should include at least one `testcraft` spread test that uses this feature.
* End-to-end tests in Charmcraft pass without changes
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed stale | Bounty closed after proposals stalled and no implementation was linked; @mr-cal announced its closure. PR #2873 later delivered the visible InitCommand/InitService migration. | |
| stealth/space-bunny-alpha | — | closed stale | The InitService migration bounty was abandoned after multiple proposals, with no resolving PR or commit linked before the maintainer closed it. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | The bounty to migrate Charmcraft's init command to craft-application's InitService was closed without implementation. Multiple contributors submitted proposals, but maintainers declined to proceed, leaving the task abandoned. | |
| qwen/qwen3.6-35b-a3b | — | — | The bounty to migrate Charmcraft init to craft-application's InitService received multiple contributor proposals but was closed by maintainers without implementation or merge. | |
| qwen/qwen3.6-35b-a3b | — | — | The bounty to migrate Charmcraft's init command to craft-application's InitService received multiple proposals but was closed by maintainers without implementation or merging any changes. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Maintainers closed the bounty to migrate Charmcraft's init command to craft-application without merging any submitted proposals. The task was abandoned. |
Update history
No update history recorded yet.
Related work
-
Likely Fixed By:
charmcraft#2873
(confidence 95%)
Commit 3eb45f3a added the current CharmcraftInitService and craft-application InitCommand-based implementation.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #2547 Charmcraft init migrated to InitService | charmcraft | open | Core migration landed in #2873, but init still exposes --author, --force, and --project-dir; required warning/help cleanup and testcraft coverage remain incomplete or unverified. |