feat: Use the first partition in the list as the default
Metadata
Current evaluation
Merged. Treats the first partition as default, supporting custom names and explicit default references. Migration states now track partition names. Approved by two reviewers, passed all CI checks, and modified 30 files.
Suggested action: —
No scores available.
Issue body
- [x] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)?
- [x] Have you added an entry to the changelog (`docs/reference/changelog.rst`)?
-----
Enable setting a custom name as the first partition in the partition list provided to the lifecycle, and consider it the default one.
Only the first partition in the list can be named 'default'.
Crafters can still reference the default partition with `(default)` in the project file.
Migration states now also track the partition name to properly track migrated content per partition.
CRAFT-4638
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | Merged. Treats the first partition as default, supporting custom names and explicit default references. Migration states now track partition names. Approved by two reviewers, passed all CI checks, and modified 30 files. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged after maintainer approval. Implements using the first partition in the list as the default, supporting custom names while retaining (default) syntax. Migration states now track partition names. Approved as a simpler, functionally equivalent solution. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #98 feat: set default partition | debcraft | merged | Merged. Automatically assigns the default partition to packages matching the project name. Approved by two reviewers with all CI checks passing. The change modifies two files and implements the original Gothenburg design. | |
| #1109 feat: track content migrated to partitions | craft-parts | merged | Merged after craft-parts PR 1108. Introduces a partitions_contents key in state files to track content migrated to partitions. Resolves None versus default partition handling conflicts. Approved by three reviewers and passed CI checks. | |
| #475 feat: update partitions docs | craft-application | merged | Merged documentation update for partitions, correcting instructions on resetting Features and overriding Application methods. Approved by three reviewers, passed CI, and modified two files. | |
| #1699 feat: partitions always enabled | craft-parts | open | Consolidates enabled/disabled partition code paths into a unified approach where no partitions defaults to a single partition. CI passing, awaiting review. | |
| #1164 feat: symlinks for aliased partition to default dirs | craft-parts | merged | Merged to implement symlinks for aliased default partitions, fix stage package priming, and update tests. The author proceeded despite failing CI, attributing failures to an external issue (#1171). Approved by three reviewers. |