← Back to issue list

Add pre-prime/prime/post-prime

View original Github issue

Metadata

Project
snapcraft
Number
#1674
Type
issue
State
closed
Author
sergiusens
Labels
—
Created
Updated
Closed

Current evaluation

Closed as stale without adding pre-prime/post-prime hooks. Later PRs #2049 and #2052 added override-stage and override-prime scriptlets, but not the full requested lifecycle-hook set.

Resolution: closed stale

Reason: The requested hooks remained unimplemented and the issue was closed as stale. PR #2049 (c5ca9ef87) and PR #2052 (15119aa7e) later added override-stage and override-prime, providing only partial lifecycle coverage.

Evaluated by: mr-cal-bot

No scores available.

Issue body

Estimate: 1 day We currently have three scriptlets that cover the build step only: prepare, build, and install. We want scriptlets around all lifecycle steps: pull, build, stage, and prime. Note that introducing an install step is not part of this roadmap. There are some complications here that I want to point out. The stage and prime steps are completely handled by the core right now. As soon as we change that and provide the ability to override them, we must account for the possibility that files in stage will be changed from what they were in install, etc. Which means the stage dir must flow to the prime dir, which it does not do today (the file list is retrieved from stage, but the files themselves come from the parts’ install dirs). Note that the stanzas for pull and build can be completed without such a redesign.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed stale Closed as stale without adding pre-prime/post-prime hooks. Later PRs #2049 and #2052 added override-stage and override-prime scriptlets, but not the full requested lifecycle-hook set.
stealth/space-bunny-alpha — closed stale Closed as stale without implementing the requested hooks; later PRs #2049 and #2052 added override-stage and override-prime only.
qwen/qwen3.6-35b-a3b — — Closed without implementation due to inactivity. The requested pre-prime, prime, and post-prime scriptlets were abandoned, as the required stage-to-prime file flow redesign was never completed.
qwen/qwen3.6-35b-a3b — — Request to add pre-prime, prime, and post-prime lifecycle scriptlets was closed without implementation. Zero comments and no resolution indicate the proposal was abandoned or superseded by later architectural changes.
qwen/qwen3.6-35b-a3b — — Request to add pre-prime, prime, and post-prime scriptlets was closed without implementation. Zero comments and no follow-up indicate the feature was abandoned.
qwen3.6-35b-a3b-mtp-q6 — — Closed without implementation. The request to add pre-prime, prime, and post-prime scriptlets was abandoned due to architectural complexities around stage-to-prime file flow and zero engagement. No pull requests or alternative solutions were merged.

Update history

No update history recorded yet.

Related work

  • Related To: canonical/snapcraft#2049 (confidence 95%)

    Merged commit c5ca9ef87 added the companion override-stage scriptlet.

  • Likely Fixed By: canonical/snapcraft#2052 (confidence 85%)

    Merged commit 15119aa7e added override-prime and snapcraftctl prime, but no pre-prime or post-prime hooks.

Related issues

Issue Project State Summary Similarity
#1673 Add pre-stage/stage/post-stage snapcraft closed Closed without implementation or a recorded reason; later PRs #2049 and #2052 added override-stage and override-prime lifecycle scriptlets.
78%
#1672 Add pre-pull/pull/post-pull snapcraft closed Roadmap item delivered: override-pull (#2045), override-stage (#2049), and override-prime (#2052) scriptlets were added, completing lifecycle hooks around pull/build/stage/prime.
72%