← Back to issue list

Support for set-version

View original Github issue

Metadata

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

Current evaluation

Set-version scriptlet support was delivered by merged PR #2063, commit 278f9b79f.

Resolution: closed resolved

Reason: Merged PR canonical/snapcraft#2063 resolved the request by adding snapcraftctl set-version support for lifecycle scriptlets and reusable setter infrastructure.

Evaluated by: mr-cal-bot

No scores available.

Issue body

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 resolved Set-version scriptlet support was delivered by merged PR #2063, commit 278f9b79f.
stealth/space-bunny-alpha — closed resolved Fixed in canonical/snapcraft#2063 (commit 278f9b79f), which added snapcraftctl set-version support for scriptlets.
qwen/qwen3.6-35b-a3b — — Closed without implementation. The request to add lifecycle scriptlets for pull, build, stage, and prime was abandoned due to architectural complexities around stage-to-prime file flow, with no further activity or resolution documented.
qwen/qwen3.6-35b-a3b — — Closed without implementation. The proposal to extend scriptlets across all lifecycle steps was abandoned due to architectural complexities in stage-to-prime file flow. No code changes were merged.
qwen/qwen3.6-35b-a3b — — Lifecycle scriptlet support for pull, build, stage, and prime steps was closed without implementation. The request appears abandoned due to unresolved architectural complexities around directory file flow, with no discussion or resolution.
qwen3.6-35b-a3b-mtp-q6 — — Abandoned without implementation. The proposal to add lifecycle scriptlets for pull, build, stage, and prime steps was closed due to architectural complications and zero activity. No fix or merge occurred.

Update history

No update history recorded yet.

Related work

  • Likely Fixed By: canonical/snapcraft#2063 (confidence 100%)

    Merged as commit 278f9b79f; the PR description explicitly resolves #1676.

Related issues

No related issues found above the similarity threshold.