feat: only create packages if necessary
Metadata
Current evaluation
Closed unmerged; conditional repacking was moved behind opt-in support in canonical/craft-application#829 and deferred until ST160.
Resolution: closed superseded
Reason: The maintainer closed the unmerged PR because the feature had to be made opt-in through canonical/craft-application#829 and was not yet relevant pending ST160. An upstream reprime issue was also reported as canonical/craft-parts#1174.
Evaluated by: mr-cal-bot
No scores available.
Issue body
Check if snaps and components need to be repacked when running the
pack command. Running `snapcraft test` after running `snapcraft pack`
must not repack the artifacts to be tested.
- [ ] Have you followed the [guidelines for contributing](https://github.com/canonical/snapcraft/blob/main/CONTRIBUTING.md)?
- [ ] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)?
- [ ] Have you successfully run `make lint`?
- [ ] Have you successfully run `make test`?
---
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed superseded | Closed unmerged; conditional repacking was moved behind opt-in support in canonical/craft-application#829 and deferred until ST160. | |
| stealth/space-bunny-alpha | — | closed superseded | Conditional repacking was moved to opt-in support in canonical/craft-application#829 pending ST160; the Snapcraft PR was closed unmerged. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without merging. The feature was made opt-in in craft-application instead, rendering this PR unnecessary until ST160 is implemented. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Closed without merging. Deferred because the feature became opt-in via craft-application PR #829 and will only be relevant after ST160 implementation. |
Update history
No update history recorded yet.
Related work
-
Superseded By:
canonical/craft-application#829
(confidence 99%)
Conditional repacking was moved to opt-in support pending ST160.
-
Blocked By:
canonical/craft-parts#1174
(confidence 95%)
Upstream bug involving reprime detection when components are added.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1111 feat: add conditional repacking support | craft-application | merged | Merged PR #1111 (commit 1dfae607) added metadata mediators for conditional repacking under ST160 and released it in craft-application 7.1.0. | |
| #1275 feat: use craft-application for pack command | charmcraft | closed | Closed unmerged as superseded after a get_build_plan error. The broader craft-application migration landed in #1538 (5e3b927c), followed by pack-command cleanup in #1704 (cfc37020). | |
| #442 Skip repacking when project files are not changed | imagecraft | open | Maintainer request to adopt craft-application's package mediation API so imagecraft skips repacking unchanged projects; implementation merged in PR #444, but issue stays open/triaged pending the wider testing-workflow requirement. | |
| #133 fix(build): only package craft-application/* | craft-application | merged | Merged PR #133 as commit f07ab8cb, restricting packaging to craft-application/* to match Starbase's approach. |