← Back to issue list

Support `--shell` and `--shell-after` for `snapcraft pack`

View original Github issue

Metadata

Project
snapcraft
Number
#4963
Type
issue
State
closed
Author
mr-cal
Labels
—
Created
Updated
Closed

Current evaluation

Restored --shell and --shell-after for snapcraft pack via merged craft-application#436 (ab55ec81); the fix shipped in Snapcraft 8.4.1.

Resolution: closed resolved

Reason: Maintainer mr-cal marked the issue fixed by canonical/craft-application#436, merged as commit ab55ec81. Snapcraft 8.4.1 release notes confirm that #4963 restored both options for pack.

Evaluated by: mr-cal-bot

No scores available.

Issue body

### What needs to get done Integrate upstream changes from https://github.com/canonical/craft-application/issues/419 ### Why it needs to get done To allow developers to debug packing a snap Source: https://matrix.to/#/!GGqzbFAUQprdPgYYCM:ubuntu.com/$L1ToU_46v6mqcYs08S8GUWJF7UV7zuOlhry59A2DgU0?via=ubuntu.com&via=matrix.org&via=kde.org

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Restored --shell and --shell-after for snapcraft pack via merged craft-application#436 (ab55ec81); the fix shipped in Snapcraft 8.4.1.
stealth/space-bunny-alpha — closed resolved Merged craft-application#436 (commit ab55ec81), adding --shell and --shell-after to pack for build-environment debugging; it resolved upstream craft-application#430.
qwen/qwen3.6-35b-a3b — — Added --shell and --shell-after flags to snapcraft pack for debugging. The request was closed after being fixed via upstream craft-application pull request 436.
qwen/qwen3.6-35b-a3b — — Fixed via craft-application PR 436, integrating upstream changes to add --shell and --shell-after flags to snapcraft pack for debugging.
qwen/qwen3.6-35b-a3b — — Fixed by merging craft-application PR 436, integrating upstream changes to add --shell and --shell-after debugging flags to snapcraft pack.
qwen3.6-35b-a3b-mtp-q6 — — Fixed by merging craft-application#436, which integrated upstream changes to add --shell and --shell-after flags to snapcraft pack. This enables developers to debug the snap packing process.

Update history

No update history recorded yet.

Related work

Related issues

Issue Project State Summary Similarity
#419 Support `--shell` and `--shell-after` for the `pack` command craft-application closed Added --shell and --shell-after support to pack via merged PR #436 (commit ab55ec81); #419 was closed as a duplicate of #430, which the PR also fixed.
78%
#436 feat: support shell/shell-after and debug in 'pack' craft-application merged Merged craft-application#436 (commit ab55ec81), adding --shell/--shell-after to pack and making --debug shell into the build environment when packing fails; fixes #430.
73%
#1782768 Add --shell for lifecycle steps snapcraft (launchpad) closed Feature request closed by the author's own pointer to snapcraft PR #2254, which added --shell support to build providers (commit a24d398e4); companion --shell-after landed in PR #2253.
72%
#430 Properly support `--shell`, `--shell-after` and `--debug` on `pack` craft-application closed Fixed by merged PR #436 (ab55ec81), adding --shell and --shell-after to pack and applying --debug when packing fails.
71%
#1782767 Add --shell-after for lifecycle steps snapcraft (launchpad) closed Implemented --shell-after via merged snapcore/snapcraft PR #2253 (commit 21cfd4750), opening a shell after the selected lifecycle step.
71%
#1848732 --shell does not make snapcraftctl available snapcraft (launchpad) open --shell and --shell-after reportedly omit snapcraftctl from the build environment; current packaging includes a compatibility wrapper, but the unversioned report remains untriaged.
70%