← Back to issue list

Remove charmhub config from charmcraft.yaml spec

View original Github issue

Metadata

Project
charmcraft
Number
#1787
Type
issue
State
closed
Author
lengau
Labels
—
Created
Updated
Closed

Current evaluation

Partially resolved: merged PR #2659 (0e45762b) removed charmhub from the reference; PR #2499 remains open to remove it from the generated spec.

Resolution: closed resolved

Reason: PR #2659 merged as commit 0e45762b and closed #1787 after removing the deprecated key from the reference. Removing it from the generated schema was left to open PR #2499.

Evaluated by: mr-cal-bot

No scores available.

Issue body

### What needs to get done - [ ] Remove the ability to have a `charmhub` section in `charmcraft.yaml` - [ ] Remove the key from the `charmcraft.yaml` reference. ### Why it needs to get done This is no longer used in Charmcraft 3+, but needs to remain in existing bases in case folks use it.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Partially resolved: merged PR #2659 (0e45762b) removed charmhub from the reference; PR #2499 remains open to remove it from the generated spec.
stealth/space-bunny-alpha — closed resolved PR #2659 merged (0e45762b), removing charmhub from the charmcraft.yaml reference while retaining old-base compatibility; model/spec removal remains open in #2499.
stealth/space-bunny-alpha — closed resolved Merged #2659 (commit 0e45762b), removing charmhub from the reference while retaining support for old bases. PR #2499 remains open to remove it from the spec.
stealth/space-bunny-alpha — closed resolved Documentation resolution merged in #2659 (0e45762b): charmhub was removed from the charmcraft.yaml reference, with legacy parsing retained for existing bases. Spec removal remains in open #2499.
qwen3.6-35b-a3b-mtp-q6 — — Closed without implementation. The deprecated charmhub configuration was not removed from the spec, indicating the task was abandoned or superseded.
qwen/qwen3.6-35b-a3b — — Removing the deprecated charmhub configuration from charmcraft.yaml was completed. The issue closed after the config was stripped from the spec, as it is unused in Charmcraft 3+ but preserved in legacy bases for compatibility.
qwen/qwen3.6-35b-a3b — — Closed and superseded by internal Jira ticket CRAFT-3179. No public pull request was merged to remove the deprecated charmhub configuration from the charmcraft.yaml spec.
qwen3.6-35b-a3b-mtp-q6 — — Closed. Implementation tracked via Jira ticket CRAFT-3179 to remove the deprecated charmhub configuration from the charmcraft.yaml spec.

Update history

No update history recorded yet.

Related work

  • Likely Fixed By: canonical/charmcraft#2659 (confidence 100%)

    Merged commit 0e45762b removed 39 lines of charmhub configuration documentation and closed #1787.

  • Likely Fixed By: canonical/charmcraft#2499 (confidence 98%)

    Open PR targeting removal of charmhub from the generated schema while preserving legacy-base compatibility.

Related issues

Issue Project State Summary Similarity
#2499 Remove charmhub config from charmcraft.yaml spec charmcraft closed Removed charmhub config from charmcraft.yaml spec, added a validator to allow it only for legacy bases (ubuntu@24.04 or lower), and updated the JSON schema. Resolved in #2499.
82%
#1359 Deprecate charmhub config in charmcraft.yaml charmcraft closed Resolved by merged PR #1828 (commit bf0b0751): the charmhub field in charmcraft.yaml is now marked deprecated and emits a warning pointing users to the store env vars. Removal from bases tracked separately in #1787.
77%
#2659 docs: remove charmhub config charmcraft merged PR #2659 (external contributor canon-cat) merged into main as commit 0e45762b, deleting 39 lines of charmhub config docs while keeping the deprecated code for backward compatibility; closes #1787.
77%