← Back to issue list

Trim down snapcraft_legacy and plan migration effort

View original Github issue

Metadata

Project
snapcraft
Number
#5982
Type
issue
State
closed
Author
mr-cal
Labels
Status: Triaged Type: Refactor
Created
Updated
Closed

Current evaluation

Superseded by a revised plan to migrate store commands first, then delete snapcraft_legacy; the package was later removed in ffb164b7a and 995f0a3bc.

Resolution: closed superseded

Reason: mr-cal explicitly closed the request because they would change the sequence: migrate store commands out of snapcraft_legacy, then delete the package entirely. The replacement migration was tracked in #5338 and completed through PRs #6109, #6128, #6207, and #6218.

Evaluated by: mr-cal-bot

No scores available.

Issue body

### Check existing issues - [x] I've verified that this request isn't described by any existing issues. ### Request 1. Remove lifecycle code from `snapcraft_legacy` 2. Remove lifecycle unit tests from `tests/legacy` 3. For the remaining store commands, determine the tasks needed to migrate them out of snapcraft_legacy ### The problem it solves So that `snapcraft_legacy` can be fully removed from the codebase.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed superseded Superseded by a revised plan to migrate store commands first, then delete snapcraft_legacy; the package was later removed in ffb164b7a and 995f0a3bc.
stealth/space-bunny-alpha — closed stale Closed as an abandoned refactoring plan. mr-cal chose a different sequence: migrate store commands out of snapcraft_legacy, then delete the package entirely.
qwen/qwen3.6-35b-a3b — — Closed by author mr-cal. Abandoned in favor of a revised migration strategy: moving store commands out of snapcraft_legacy first, then deleting the module entirely. A Jira ticket was created for tracking.
qwen/qwen3.6-35b-a3b — — Closed by the maintainer, who abandoned the proposed lifecycle removal. The author will instead migrate store commands out of snapcraft_legacy first, then delete the legacy module entirely.
qwen/qwen3.6-35b-a3b — — Superseded by a revised migration strategy. The maintainer closed the issue to implement a different approach: moving store commands out of snapcraft_legacy first, then deleting the legacy module entirely.
qwen3.6-35b-a3b-mtp-q6 — — Closed due to a revised migration strategy. The maintainer will now move store commands out of snapcraft_legacy first, then delete the legacy module entirely, bypassing the original lifecycle code removal plan.

Update history

No update history recorded yet.

Related work

  • Superseded By: snapcraft#5338 (confidence 94%)

    Tracks the revised store-command migration performed before deleting snapcraft_legacy.

  • Related To: snapcraft#6109 (confidence 90%)

    Merged store-command migration identified in #5338.

  • Related To: snapcraft#6128 (confidence 90%)

    Merged store-command migration identified in #5338.

  • Related To: snapcraft#6207 (confidence 90%)

    Merged store-command migration identified in #5338.

  • Related To: snapcraft#6218 (confidence 90%)

    Merged store-command migration identified in #5338.

Related issues

Issue Project State Summary Similarity
#5338 Migrate snapcraft_legacy store commands snapcraft closed All four legacy store commands were migrated through merged PRs #6109, #6128, #6207, and #6218; snapcraft_legacy was later removed.
77%
#4194 Migrate snapcraft_legacy subcommands to use craft-cli snapcraft closed Requested legacy-handler bypass was abandoned; verbosity support landed in #5646/#5680, and snapcraft_legacy was later removed in ffb164b7a.
74%
#5682 Remove legacy help and version code snapcraft closed Merged PR #5777 removed the unused snapcraft_legacy help/version commands and their tests; the legacy package was later removed wholesale for Snapcraft 9.
73%
#6241 chore: remove snapcraft_legacy snapcraft merged Merged #6241 via commits ffb164b7a and 995f0a3bc, deleting snapcraft_legacy, obsolete specs, and legacy-only dependencies after its entry points were removed.
73%
#1793261 Vendor legacy snapcraft to maintain backward compatibility snapcraft (launchpad) closed Legacy Snapcraft was vendored into the snapcraft snap, dispatching projects without bases to it. Delivered via merged PRs canonical/snapcraft#2283 (commit f9592939a, override-build refactor) and #2285 (commit 5c1ee3b88).
72%
#3608 many: rename snapcraft package to snapcraft_legacy (CRAFT-726) snapcraft merged Merged PR #3608 renamed the existing snapcraft package to snapcraft_legacy, freeing the snapcraft name for a craft-library-based application while leaving its entry point unchanged.
72%
#5673 Remove default command, `snapcraft` snapcraft closed PR #6074 removed bare `snapcraft` in db7c53f21, but PR #6178 reverted it in e5aaf0683. Removal was deferred to core28 planning, leaving the deprecated command intact.
71%
#2285 snapcraft snap: vendor legacy snapcraft snapcraft merged Merged in canonical/snapcraft#2285 (commit 5c1ee3b88), vendoring legacy Snapcraft and dispatching no-base projects to it to preserve backward compatibility.
71%