build: inform user that packing charm may take time (CRAFT-347)
Metadata
Current evaluation
Merged implementation adds progress feedback during charm packing to inform users of duration. Refactored environment logic to retrieve the charm name earlier. Approved by two reviewers and passed CI checks.
Suggested action: —
No scores available.
Issue body
Let the user know which charm is being packed and that it may take some
time. Move launched_environment() logic into pack_charm_in_instance()
to have the information required (charm name) prior to launching.
Example output:
```
$ charmcraft pack
Packing charm 'foo_ubuntu-18.04-amd64.charm' which may take several minutes...
Created 'foo_ubuntu-18.04-amd64.charm'.
Packing charm 'foo_ubuntu-20.04-amd64.charm' which may take several minutes...
Created 'foo_ubuntu-20.04-amd64.charm'.
```
Signed-off-by: Chris Patterson <chris.patterson@canonical.com>
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | Merged implementation adds progress feedback during charm packing to inform users of duration. Refactored environment logic to retrieve the charm name earlier. Approved by two reviewers and passed CI checks. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged to improve user feedback during charm packing. The update displays the target charm name and a wait message before packing begins. Refactored launched_environment() logic into pack_charm_in_instance() to access the charm name earlier. Resolves CRAFT-347. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged change adds user feedback during charm packing, displaying the charm name and a duration warning. Refactors launched_environment() into pack_charm_in_instance() to access the charm name earlier, resolving CRAFT-347. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #411 build: pack charm in provided environment when using bases (CRAFT-313) | charmcraft | merged | Merged implementation for packing charms in provided environments per bases configuration (CRAFT-313). Approved by two reviewers, modifying two files (+175/-30). Future work will add verbose and quiet mode flag support. | |
| #324 Provide the building charms functionality through the pack command. | charmcraft | merged | Merged. Implements building charms functionality via the pack command. Approved by three reviewers, modifying four files (+219/-30 lines). | |
| #737 Better charmcraft pack output | charmcraft | closed | Closed without implementation. Maintainers cited technical complexity in tracking dynamic build steps and existing UX guidelines. Broader UX improvements should be reported to the craft-cli repository instead. |