← Back to issue list

`charmcraft --help` still mentions `build` that is deprecated

View original Github issue

Metadata

Project
charmcraft
Number
#720
Type
issue
State
closed
Author
simondeziel
Labels
—
Created
Updated
Closed

Current evaluation

Fixed in canonical/charmcraft#739 (commit 1a461c39): removed deprecated build from top-level help and promoted pack as the standard build command.

Resolution: closed resolved

Reason: PR #739 resolved the stale help output in commit 1a461c39 by removing build from the starter command list and featuring pack instead.

Evaluated by: mr-cal-bot

No scores available.

Issue body

In the "Starter commands" section, `build` is still mentioned despite being deprecated and replaced by `pack`: ``` $ charmcraft --help Usage: charmcraft [help] <command> Summary: Charmcraft helps build, package and publish operators on Charmhub. Together with the Python Operator Framework, charmcraft simplifies operator development and collaboration. See https://charmhub.io/publishing for more information. Global options: -h, --help: Show this help message and exit -v, --verbose: Show debug information and be more verbose -q, --quiet: Only show warnings and errors, not progress -t, --trace: Show all information needed to trace internal behaviour -p, --project-dir: Specify the project's directory (defaults to current) Starter commands: build: Build the charm clean: Purge project artifacts close: Close a channel for a charm or bundle init: Initialize a charm operator package tree and files names: List your registered charm and bundle names in Charmhub register: Register a charm name in Charmhub release: Release a charm or bundle revision in one or more channels revisions: List revisions for a charm or a bundle in Charmhub status: Show channel and released revisions upload: Upload a charm or bundle to Charmhub upload-resource: Upload a resource to Charmhub version: Show charmcraft version Commands can be classified as follows: Basic: analyze, build, clean, init, pack, version Charmhub: close, create-lib, fetch-lib, list-lib, login, logout, names, publish-lib, register, register- bundle, release, resource-revisions, resources, revisions, status, upload, upload-resource, whoami For more information about a command, run 'charmcraft help <command>'. For a summary of all commands, run 'charmcraft help --all'. ``` ``` $ charmcraft build DEPRECATED: The build command is deprecated, use 'pack' instead. See https://discourse.charmhub.io/t/4652#heading--dn06 for more information. ``` ``` $ snap list charmcraft Name Version Rev Tracking Publisher Notes charmcraft 1.5.0 834 latest/stable canonical✓ classic ```

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Fixed in canonical/charmcraft#739 (commit 1a461c39): removed deprecated build from top-level help and promoted pack as the standard build command.
stealth/space-bunny-alpha — closed resolved Removed deprecated build from help and promoted pack via merged PR canonical/charmcraft#739 (commit 1a461c39).
stealth/space-bunny-alpha — closed resolved Fixed in canonical/charmcraft#739 (commit 1a461c39), which removed deprecated build from the help listing and promoted pack as the standard build command.
qwen3.6-35b-a3b-mtp-q6 — — Fixed and closed. The deprecated build command reference was removed from the charmcraft help output. The author confirmed the resolution with a thank you comment.
qwen/qwen3.6-35b-a3b — — Fixed. The CLI help text was updated to remove the deprecated build command from the starter commands section, replacing it with pack as intended.
qwen3.6-35b-a3b-mtp-q6 — — The deprecated build command reference was removed from the charmcraft help output. The issue was closed after the fix was applied.

Update history

No update history recorded yet.

Related work

  • Likely Fixed By: canonical/charmcraft#739 (confidence 99%)

    The PR directly updated the command help listing to replace the deprecated build command with pack.

Related issues

Issue Project State Summary Similarity
#664 Deprecate the `build` command charmcraft closed Charmcraft 1.5 deprecated `build` through merged PR #683 (commit ae230370), adding a notice directing users to `pack`.
80%
#817 docs(README): Replace obsoleted build command charmcraft merged Merged PR #817 updated the README to use charmcraft pack instead of the removed charmcraft build command for Charmcraft 2.0.0.
75%
#452 build: create charm builder tool (CRAFT-373) charmcraft closed Superseded by merged charmcraft#453, which moved charm-building logic to a standalone CharmBuilder; the venv and pip optimizations were deferred.
72%
#249 `charmcraft build` will let you build a charm that won't deploy charmcraft closed Closed by facundobatista as a duplicate, tracking all build-time sanity checks (incl. config.yaml/actions.yaml validity) in the umbrella issue charmcraft#27; later implemented by merged PR #556 (a585aec6).
71%