← Back to issue list

Use upstream `init` command from craft-application

View original Github issue

Metadata

Project
snapcraft
Number
#5098
Type
issue
State
closed
Author
mr-cal
Labels
—
Created
Updated
Closed

Current evaluation

Snapcraft adopted craft-application's init command in merged PR #5129 (commit de05a733d), preserving behavior while adding name, profile, and project-dir options.

Resolution: closed resolved

Reason: PR #5129 resolved the migration and landed as commit de05a733d, replacing Snapcraft's custom init implementation with craft-application's command.

Evaluated by: mr-cal-bot

No scores available.

Issue body

### What needs to get done Replace the init command with craft-application's init command. There should be no behavioral changes. ### Why it needs to get done To allow adding a `test` profile in preparation for `snapcraft test`. Depends on https://github.com/canonical/craft-application/issues/508

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Snapcraft adopted craft-application's init command in merged PR #5129 (commit de05a733d), preserving behavior while adding name, profile, and project-dir options.
stealth/space-bunny-alpha — closed resolved Snapcraft's init was replaced with craft-application's init command in merged PR #5129 (commit de05a733d), adding name, profile and project-dir options; later PR #5398 (0fb29e11f) added the `test` init profile this enabled.
stealth/space-bunny-alpha — closed resolved Snapcraft adopted craft-application’s init command through merged PR #5129 (de05a733d), adding name, profile and project-dir options.
qwen/qwen3.6-35b-a3b — — Closed without implementation. The upstream init command replacement remains abandoned, pending the unresolved craft-application dependency.
qwen/qwen3.6-35b-a3b — — Closed without a linked pull request or explicit resolution. The task to replace the local init command with craft-application's version appears abandoned or superseded.
qwen3.6-35b-a3b-mtp-q6 — — Closed without a linked fix or merge. The request to replace the local init command with craft-application's upstream version appears abandoned or resolved externally, with no implementation details documented.

Update history

No update history recorded yet.

Related work

  • Likely Fixed By: snapcraft#5129 (confidence 100%)

    Merged refactor adopting the upstream init command in commit de05a733d.

  • Blocked By: canonical/craft-application#508 (confidence 100%)

    The issue explicitly identifies this upstream craft-application work as a dependency.

Related issues

Issue Project State Summary Similarity
#5129 refactor: use init command from craft-application snapcraft merged Merged PR #5129 (de05a733d) replaced Snapcraft’s init command with craft-application’s, fixed #5098, and added name, profile, and project-dir options.
84%
#1153 Move the init command to craft-application charmcraft closed Init moved to craft-application and was adopted by Charmcraft in merged PR canonical/charmcraft#1340; upstream PR canonical/craft-application#522 landed it in commit f2a4becf.
77%
#360 Migrate non-lifecycle commands to craft-application rockcraft closed Resolved by merged PR #761 (commit 484099f5), which adopted craft-application’s upstream Init command/service and added --project-dir support.
76%