← Back to issue list

refactor: migrate commands to craft-application

View original Github issue

Metadata

Project
snapcraft
Number
#4830
Type
pull request
State
merged
Author
mr-cal
Labels
Created
Updated
Closed

Current evaluation

Merged following three approvals and passing CI. Migrates remaining commands to core24/craft-application, updating snapcraft init to generate core24 files, correcting list-plugins output, and refreshing command docs. Resolves #4742.

Suggested action:

No scores available.

Issue body

- [x] Have you followed the [guidelines for contributing](https://github.com/snapcore/snapcraft/blob/master/CONTRIBUTING.md)? - [x] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)? - [x] Have you successfully run `tox run -m lint`? - [x] Have you successfully run `tox run -e test-py310`? (supported versions: `py39`, `py310`, `py311`, `py312`) ----- Migrate the remaining commands to core24/craft-application. This is broken into many discrete commits. Behavioral changes: - `snapcraft list-plugins` no longer errors when in a core24 project directory - `snapcraft init` creates a core24 snapcraft.yaml file, instead of core22 - `snapcraft list-plugins` shows core24 plugins when not in a snapcraft project directory, instead of core22 - command reference docs are based on core24 lifecycle commands, instead of core22 Fixes #4742 (CRAFT-2822)

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Merged following three approvals and passing CI. Migrates remaining commands to core24/craft-application, updating snapcraft init to generate core24 files, correcting list-plugins output, and refreshing command docs. Resolves #4742.
qwen3.6-35b-a3b-mtp-q6 Merged. Migrated remaining commands to core24/craft-application, updating init and list-plugins to target core24 and refreshing documentation. Resolves #4742.
qwen3.6-35b-a3b-mtp-q6 Merged migration of remaining commands to core24/craft-application. Updates snapcraft init to generate core24 files, fixes list-plugins behavior, and updates docs. Resolves #4742.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#4707 refactor: migrate core22 store commands snapcraft merged Merged a refactor migrating core22 store commands to craft_application.AppCommand. This enables store operations for core24 snaps and fixes a bug where project-agnostic commands like snapcraft login failed in core24 directories.
80%
#5007 refactor(application): commands, pre-run validation snapcraft merged Merged after approval and CI. Refactored command handling and pre-run validation using craft-cli groups. Improved error formatting, targeted SNAPCRAFT_REMOTE_BUILD_STRATEGY validation, and fixed core20/core24 compatibility. Resolves #4911 and #5008.
79%
#5129 refactor: use init command from craft-application snapcraft merged Merged a refactor replacing Snapcraft's init command with craft-application's implementation. Introduces name, profile, and project-dir parameters, resolves #5098, passed CI, and received two approvals across 23 changed files.
77%
#1520 refactor: remove old "init" command implementation charmcraft merged Merged a refactoring PR removing the old "init" command after the craft-application transition. Approved by two reviewers with passing CI, the change modified four files, adding one line and deleting 248.
77%
#1358 feat(craft-application): migrate store commands charmcraft merged Migrated store commands in craft-application. Approved by three reviewers and merged, modifying 29 files with 2859 additions and 344 deletions.
76%
#4614 feat(craft-application): migrate version command snapcraft merged Merged, resolving issue #4468. The version command was migrated to craft-application across seven files. Approved by two reviewers and integrated despite minor Codecov coverage warnings.
76%
#521 refactor: port code to latest craft-app update rockcraft merged Merged following two approvals and passing CI. Refactored image and package services to replace platform/build-for with the build plan, aligning with craft-application 2.3.0. Updates span 14 files (+106/-71 lines).
76%
#6145 refactor: migrate gated command snapcraft merged Merged the refactoring that migrates the gated command from snapcraft_legacy. Approved by two reviewers and passed most CI checks. Resolves SNAPCRAFT-1314.
75%
#968 build(deps): update craft-application rockcraft merged Merged after updating craft-application for a CRAFT-4705 demo. Approved by two reviewers with most CI checks passing despite failing snap-tests. Changes affect 17 files with 95 additions and 27 deletions.
74%
#4586 refactor: move core22 commands for versioned implementation snapcraft merged Merged a pure rename refactor moving core22 commands for versioned implementation. Approved by four reviewers and passed CI. Full spread tests were enabled per request; failures attributed to external craft-application updates.
73%