← Back to issue list

create-lib should explain what it is about to do and ask for confirmation

View original Github issue

Metadata

Project
charmcraft
Number
#195
Type
issue
State
open
Author
markshuttle
Labels
Status: Triaged Type: Enhancement
Created
Updated
Closed
—

Current evaluation

Request to add confirmation prompt to create-lib is obsolete: command now exits with deprecation error since Charmcraft 4.5.

Suggested action: close stale

Reason: The create-lib command is now a stub that fails early with CREATE_LIB_REMOVAL_MESSAGE and returns 1 (store.py:1287-1290). Charmcraft 4.5 release notes state Charmhub no longer accepts new libraries, and the spread test confirms create-lib exits with a deprecation error, making the requested confirmation/explanation behavior obsolete.

Evaluated by: mr-cal-bot

Impact: 0 Quick Win: 0 Complexity: 0 Confidence: 95 Actionability: 0

Issue body

While we can clean up bad data in charmhub, it will be a pain if there are lots of crappy mistakes in the charm library service. So charmcraft should be very explicit about what it is trying to do when you use create-lib. For example: ``` $ charmcraft create-lib db This command will create lib/charms/sabdfl-hello-world/v0/db.py The charm library will be available to any charmer as: charms.sabdfl-hello-world.v0.db It will be visible at charmhub.io/sabdfl-hello-world/libs/db For more information about charm libraries, please see https://charmhub.io/docs/charm-libraries/ Are you sure you want to create this charm library? (Y/N) Y charms.sabdfl-hello-world.v0.db created, push-lib will update Charmhub. ```

Evaluation history

Date Model Scores Action Summary
~deepseek/deepseek-pro-latest
Impact: 0
Quick Win: 0
Complexity: 0
Confidence: 95
Actionability: 0
close stale Request to add confirmation prompt to create-lib is obsolete: command now exits with deprecation error since Charmcraft 4.5.
stealth/space-bunny-alpha
Impact: 32
Quick Win: 17
Complexity: 25
Confidence: 68
Actionability: 72
keep open Enhancement requests an explanatory warning and Y/N confirmation before create-lib generates a library; the command remains registered, but current implementation and test coverage were not verified.
stealth/space-bunny-alpha
Impact: 5
Quick Win: 0
Complexity: 3
Confidence: 95
Actionability: 10
close stale Enhancement asking create-lib to explain what it will do and prompt for confirmation. Now moot: Charmhub stopped accepting new libraries and create-lib is a deprecation stub that exits with an error (charmcraft 4.5).
stealth/space-bunny-alpha
Impact: 10
Quick Win: 1
Complexity: 20
Confidence: 93
Actionability: 15
close stale Requests an explanatory prompt and Y/N confirmation before `charmcraft create-lib` creates a library; the command is now a stub that errors out, so the request is obsolete.
qwen/qwen3.6-35b-a3b
Impact: 10
Quick Win: 9
Complexity: 5
Confidence: 95
Actionability: 90
close resolved The create-lib command has been deprecated and disabled; Charmhub no longer accepts new library registrations. The enhancement request is now obsolete.
qwen/qwen3.8-27b
Impact: 30
Quick Win: 22
Staleness: 55
Complexity: 25
Confidence: 70
Support Request: 0
keep open Enhancement request for charmcraft create-lib to print a summary of the library it will create and ask for confirmation before creating it. Triaged (labelled, synced to internal Jira ticket CHARMCRAFT-653), but no implementation yet.
qwen/qwen3.6-35b-a3b
Staleness: 70
Complexity: 20
Confidence: 85
Support Request: 0
keep open Feature request to add a confirmation prompt and preview output before creating a charm library via charmcraft. The issue is triaged and has been inactive for nearly six years.
qwen3.6-35b-a3b-mtp-q6
Staleness: 55
Complexity: 10
Confidence: 85
Support Request: 0
keep open Enhancement to add a confirmation prompt and explanation before running charmcraft create-lib. Currently triaged but inactive for approximately nine months.
qwen3.6-35b-a3b-mtp-q6
Staleness: 65
Complexity: 15
Confidence: 80
Support Request: 0
keep open Enhancement to add a confirmation prompt and explanatory output before creating a charm library via charmcraft create-lib. Currently triaged and recently synced to Jira.

Update history

No update history recorded yet.

Related issues

No related issues found above the similarity threshold.