Properly support `--shell`, `--shell-after` and `--debug` on `pack`
Metadata
Current evaluation
Closed without a GitHub resolution. Synced to internal Jira ticket CRAFT-3288. No pull requests were merged, indicating the request was abandoned or handled via internal tracking.
Suggested action: —
No scores available.
Issue body
### What needs to get done
Update the [PackCommand](https://github.com/canonical/craft-application/blob/main/craft_application/commands/lifecycle.py#L361) so that `--shell`, `--shell-after` and `--debug` work as the user expects them to for the packing process itself (and not just for the lifecycle commands that might come before it).
### Why it needs to get done
There is a real user need for the options on `pack`, specially `--debug` as the packing process is involved enough to fail sometimes.
Also the inconsistency is annoying, heh
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | Closed without a GitHub resolution. Synced to internal Jira ticket CRAFT-3288. No pull requests were merged, indicating the request was abandoned or handled via internal tracking. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without implementation. The request to add shell and debug flags to the pack command was synced to an internal Jira ticket, but no code changes or pull requests were merged. The issue appears abandoned. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Closed without a public fix. The request to add --shell, --shell-after, and --debug flags to the pack command was synced to an internal Jira ticket, but no implementation or merge occurred. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #4963 Support `--shell` and `--shell-after` for `snapcraft pack` | snapcraft | closed | 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. | |
| #419 Support `--shell` and `--shell-after` for the `pack` command | craft-application | closed | Added support for --shell and --shell-after to the pack command. Fixed via pull request #436 and marked as a duplicate of issue #430. | |
| #436 feat: support shell/shell-after and debug in 'pack' | craft-application | merged | Merged following two approvals and passing CI. Introduces --shell and --shell-after flags to the pack command for build environment inspection, and improves --debug to activate on packing failures. Resolves #430. |