← Back to issue list

pack: add support for --debug, --shell, and --shell-after (CRAFT-408)

View original Github issue

Metadata

Project
charmcraft
Number
#495
Type
pull request
State
merged
Author
cjp256
Labels
—
Created
Updated
Closed

Current evaluation

Merged in commit 1a957995, adding --debug, --shell, and --shell-after to pack for interactive and failure-triggered build debugging.

Resolution: closed resolved

Reason: PR #495 was approved and merged with implementation commit aef132a5, enabling debugging shells in target build environments.

Evaluated by: mr-cal-bot

No scores available.

Issue body

Add flags to support debugging Charm building in target environment. Execute this shell within the context of managed or destructive mode to make behavior consistent regardless of provider usage. --debug will pop a shell on failure in the lifecycle. --shell will pop a shell instead of building a charm. --shell will pop a shell after building the charm. Signed-off-by: Chris Patterson <chris.patterson@canonical.com>

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Merged in commit 1a957995, adding --debug, --shell, and --shell-after to pack for interactive and failure-triggered build debugging.
stealth/space-bunny-alpha — closed resolved Merged #495, adding pack --debug, --shell, and --shell-after options for interactive and failure-triggered build debugging.
stealth/space-bunny-alpha — closed resolved Merged charmcraft#495 (CRAFT-408), adding --debug, --shell, and --shell-after to pack for interactive and failure-triggered build debugging.
qwen/qwen3.6-35b-a3b — — Added --debug, --shell, and --shell-after flags to the pack command for debugging charm builds. Merged after approval by three reviewers and passing CI checks, modifying five files.
qwen3.6-35b-a3b-mtp-q6 — — Merged: Added --debug, --shell, and --shell-after flags to the pack command. These enable interactive shells for debugging charm builds in target environments, supporting failure, replacement, and post-build execution across managed and destructive modes.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#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.
89%
#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.
81%
#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.
73%
#772 packing with `--debug` showing building message over shell charmcraft closed Reported --debug shell showing the BUILD progress message over the interactive shell. Maintainer directed to merged PR #753 (CRAFT-871), which pauses the emitter during user-requested shells; shipped in charmcraft 1.7 (candidate) as of 2022-05-30.
73%
#415 `--debug` does not enter a shell for failures during post-prime or packing craft-application closed Fixed by merged PR #436 (commit ab55ec81), adding --shell/--shell-after to pack and making --debug drop into a shell when packing fails; closed by maintainer tigarmo on 2024-09-10.
73%
#3895 parts: allow debug shell after the lifecycle snapcraft merged Merged #3895 (725d3935) into hotfix/7.1.4, allowing --debug to open a build-environment shell when packing fails after the parts lifecycle.
72%
#81 feat: implement --shell, shell-after, --debug craft-application merged Merged PR #81 as commit acad93da, adding --shell, --shell-after and --debug support and resolving #58 after approval by two maintainers.
71%
#58 Implement "--shell", "--shell-after" and "--debug" craft-application closed Implemented --shell, --shell-after and --debug support through merged PR #436 (commit ab55ec81).
71%