stage-packages doesn't support versions
Metadata
Current evaluation
Fixed in canonical/snapcraft#1157, merged as commit ef4076821 ('repo: support versioned stage-packages'), adding version-specifier support so entries like hello=2.10-1 resolve instead of erroring.
Resolution: closed resolved
Reason: Versioned stage-packages support was added by merged PR canonical/snapcraft#1157 (commit ef4076821), which introduced parsing of version constraints in the apt repo layer so entries such as hello=2.10-1 download correctly rather than failing with 'package not found'.
Evaluated by: mr-cal-bot
Issue body
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Fixed in canonical/snapcraft#1157, merged as commit ef4076821 ('repo: support versioned stage-packages'), adding version-specifier support so entries like hello=2.10-1 resolve instead of erroring. | |
| stealth/space-bunny-alpha | — | closed resolved | Versioned stage-packages support was added in canonical/snapcraft#1157, merged as commit ef4076821, resolving failures for entries such as hello=2.10-1. | |
| stealth/space-bunny-alpha | — | closed resolved | Versioned stage-packages support was implemented by merged PR canonical/snapcraft#1157, commit ef4076821. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without resolution. The limitation was superseded by updated Snapcraft packaging logic in later releases. | |
| qwen/qwen3.6-35b-a3b | — | — | The stage-packages version pinning limitation was abandoned. The report was closed without implementation or discussion, marked by zero comments and prolonged inactivity. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without resolution. The report that Snapcraft 2.27 stage-packages fails with versioned package specifications was abandoned after nine years with no comments or fix. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Closed as obsolete. The stage-packages directive initially lacked version pinning support, causing package resolution failures. Newer Snapcraft releases now support versioned stage packages, superseding this issue. |
Update history
| Date | Change |
|---|---|
| created |
Related work
-
Likely Fixed By:
canonical/snapcraft#1157
(confidence 98%)
Merged PR 'repo: support versioned stage-packages' (commit ef4076821) that directly resolves this bug; marked merged.
-
Related To:
canonical/snapcraft#1142
(confidence 45%)
Adjacent, earlier work tracking versions of stage-packages in PullState (commit eabfadaf7); relevant context but not the fix itself.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1157 repo: support versioned stage-packages | snapcraft | merged | Merged support for versioned stage-packages in canonical/snapcraft#1157 via commit ef4076821, resolving Launchpad bug #1666656. | |
| #1671939 build-packages doesn't support specifying a version | snapcraft (launchpad) | closed | Versioned build-packages support was merged in snapcraft#1185 (0405cb87e), with follow-up 8eb2eb6 restoring installed-package version checks. | |
| #1686481 stage-packages does not handle unmet dependencies | snapcraft (launchpad) | closed | Fixed by canonical/craft-parts#258 (commit 8d0ee1cd), making stage-packages use repositories for the build host architecture when resolving cross-architecture packages. | |
| #1887960 snapcraft ignores version specific build-packages | snapcraft (launchpad) | closed | snapcraft ignored version specifiers in build-packages (e.g. foo=version). Fixed by snapcore/snapcraft PR #3221 (commit 727c46f22), merged into snapcraft to pass requested package versions to apt-get install. |