← Back to issue list

`snapcraft try` for `core24`

View original Github issue

Metadata

Project
snapcraft
Number
#5604
Type
issue
State
open
Author
PsikoBlock
Labels
Status: Triaged Type: Enhancement
Created
Updated
Closed

Current evaluation

Implement `snapcraft try` for core24 snaps, a known core24 migration gap. Triaged (Jira SNAPCRAFT-1185); a maintainer noted in July 2025 it's now implementable after Craft Application 5.0 refactoring, but the command still raises FeatureNotImplemented.

Suggested action: keep open

Reason: The issue is triaged (Status: Triaged, Type: Enhancement), acknowledged by maintainer @mr-cal who stated it is 'now possible to implement in Snapcraft' after Craft Application 5.0 refactoring, and tracked in Jira SNAPCRAFT-1185. The feature is still unimplemented at HEAD: TryCommand._run in snapcraft/commands/lifecycle.py unconditionally raises FeatureNotImplemented for all bases, and the core22-to-core24 migration guide still lists it as a known issue, so it remains relevant despite ~13.5 months of inactivity.

Impact: 45 Quick Win: 15.75 Staleness: 65 Complexity: 65 Confidence: 80 Support Request: 10

Issue body

### What needs to get done Please implement `snapcraft try` for `core24`-based snaps. This is a known issue noted in the migration guide to core24. ### Why it needs to get done `snap try` is a valuable tool for development in our Ubuntu Core-based system, it shortens the time between tweaking the code and seeing a result. Our current workaround to use it is to unpack the snap after it was built, but this wastes time on the initial build of a project and complicates our build scripts.

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.8-27b
Impact: 45
Quick Win: 15.75
Staleness: 65
Complexity: 65
Confidence: 80
Support Request: 10
keep open Implement `snapcraft try` for core24 snaps, a known core24 migration gap. Triaged (Jira SNAPCRAFT-1185); a maintainer noted in July 2025 it's now implementable after Craft Application 5.0 refactoring, but the command still raises FeatureNotImplemented.
qwen/qwen3.6-35b-a3b
Staleness: 45
Complexity: 50
Confidence: 90
Support Request: 10
keep open Request to implement snapcraft try for core24-based snaps to streamline development. Triaged as an enhancement, acknowledged by maintainers as feasible, but inactive for approximately one year.
qwen3.6-35b-a3b-mtp-q6
Staleness: 75
Complexity: 55
Confidence: 85
Support Request: 10
keep open Feature request to implement snapcraft try for core24-based snaps to improve development workflows. Triaged and acknowledged by maintainers as feasible post-upstream refactoring, but inactive for over a year.
qwen3.6-35b-a3b-mtp-q6
Staleness: 65
Complexity: 60
Confidence: 90
Support Request: 0
keep open Implement snapcraft try for core24 snaps to streamline development. The enhancement is triaged, confirmed feasible after upstream refactoring, and tracked internally. Awaiting development assignment.

Update history

No update history recorded yet.

Related work

  • Related To: snapcraft#3981 (confidence 75%)

    PR that implemented `snapcraft try` for core22 (commit 2691262b8); the pattern and provider-mounting approach to follow for core24.

  • Related To: launchpad#1978844 (confidence 60%)

    Core22 counterpart of the same gap ('snapcraft try not available for core22-based snap'), resolved by PR #3981.

Related issues

Issue Project State Summary Similarity
#1978844 snapcraft try not available for core22-based snap snapcraft (launchpad) closed Closed without resolution or comments. The snapcraft try command remains unavailable for core22-based snaps, with attempts failing or falling back to legacy implementations.
77%
#5634 Core22 unit tests in snapcraft fails with craft application 5.5.0 snapcraft closed Closed and deferred. The core22 test failure was traced to a validation change in craft-application PR #812. The issue was logged internally as SNAPCRAFT-1188 for tracking.
72%
#5136 chore: migrate snapcraft itself to core24 snapcraft merged Migrating snapcraft to core24 was approved by two reviewers, passed CI checks, and successfully merged. The update modified 9 files to align the project with the core24 base.
71%
#4519 Use `core24` buildd daily image snapcraft closed Closed. Resolved by swapping the devel daily image for the core24 buildd daily image immediately, deferring snapcraft.yaml modifications until core24 reaches beta. craft-providers support was already merged.
70%
#3981 commands, lifecycle: provide snapcraft try for core22 snapcraft merged Merged. Adds snapcraft try support for core22 by mounting a host prime directory into the instance for lifecycle priming without packing. Approved by one reviewer, passed CI, and modified 8 files.
70%