← Back to issue list

feat: add adoption help at end of init message

View original Github issue

Metadata

Project
charmcraft
Number
#2506
Type
pull request
State
merged
Author
dwilding
Labels
—
Created
Updated
Closed

Current evaluation

Merged as commit 3f641e46 ("feat: add adoption help at end of init message (#2506)"). Adds two extra lines to `charmcraft init` output pointing users to uv for dependency management plus a charm-to-uv migration doc link.

Resolution: closed resolved

Reason: The PR was approved by two maintainers and merged to main as commit 3f641e46, which carries the #2506 reference in its title. The change ships uv adoption guidance in the init success message, addressing the confusion described in canonical/charmcraft#2494.

Evaluated by: mr-cal-bot

No scores available.

Issue body

The machine and Kubernetes profiles in Charmcraft 4 use the uv plugin, which requires a different way of managing dependencies than in earlier versions of Charmcraft. The difference is not apparent when running `charmcraft init`. See https://github.com/canonical/charmcraft/issues/2494 for an example of how this can trip people up. This PR adds extra lines at the end of the success message from `charmcraft init`: ``` To manage your charm's dependencies, use uv. To migrate from the 'charm' plugin, see: https://documentation.ubuntu.com/charmcraft/stable/howto/migrate-plugins/charm-to-uv/ ``` My thinking is that the second line (and doc link) could be removed in a future version of Charmcraft. --- - [x] I've followed the [contribution guidelines](https://github.com/canonical/charmcraft/blob/main/CONTRIBUTING.md). - [x] I've signed the [CLA](http://www.ubuntu.com/legal/contributors/). - [x] I've successfully run `make lint && make test`. - [ ] ~I've added or updated any relevant documentation.~ - [ ] I've updated the relevant release notes.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Merged as commit 3f641e46 ("feat: add adoption help at end of init message (#2506)"). Adds two extra lines to `charmcraft init` output pointing users to uv for dependency management plus a charm-to-uv migration doc link.
stealth/space-bunny-alpha — closed resolved Merged PR #2506: charmcraft init now ends with uv dependency guidance and a charm-to-uv migration link, clarifying Charmcraft 4's uv workflow versus the legacy charm plugin.
qwen/qwen3.6-35b-a3b — — Merged a feature adding adoption guidance to the charmcraft init message. It directs users to use uv for dependencies and provides a migration link from the legacy charm plugin. Approved and integrated.
qwen3.6-35b-a3b-mtp-q6 — — Merged: adds adoption help and migration instructions to the charmcraft init success message. It clarifies that Charmcraft 4 uses the uv plugin instead of the legacy charm plugin, preventing user confusion.

Update history

No update history recorded yet.

Related work

  • Related To: canonical/charmcraft#2494 (confidence 95%)

    Referenced in the PR body as the motivating example: a user tripped up by uv-vs-charm dependency differences in machine/k8s profiles on Charmcraft 4.

  • Related To: charmcraft#2873 (confidence 55%)

    Later commit 3eb45f3a 'feat(init): support base-specific profiles' touches charmcraft/services/init.py, the same surface this PR modified; potentially evolves or supersedes the init messaging.

Related issues

No related issues found above the similarity threshold.