← Back to issue list

Running `charmcraft fetch-lib` on a charm with dashes should fetch to a path with underscores

View original Github issue

Metadata

Project
charmcraft
Number
#284
Type
issue
State
closed
Author
mthaddon
Labels
—
Created
Updated
Closed

Current evaluation

Closed as stale with no recorded fix or maintainer rationale. A later unlinked change, #1701 (3af2c248), implemented underscore support for fetch-libs.

Resolution: closed stale

Reason: No implementation or closing maintainer comment was linked; the sole 2022 comment only restated the request. A later fix landed in PR #1701 as commit 3af2c248 but did not document resolving #284.

Evaluated by: mr-cal-bot

No scores available.

Issue body

If you have a library for a charm (such as nginx-ingress-integrator) that has dashes in the name, and run `charmcraft fetch-lib charms.nginx-ingress-integrator.v0.charms` it should still fetch to a path on disk that has underscores rather than dashes, so it's importable.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed stale Closed as stale with no recorded fix or maintainer rationale. A later unlinked change, #1701 (3af2c248), implemented underscore support for fetch-libs.
stealth/space-bunny-alpha — closed stale Requested underscore-normalized paths when charmcraft fetch-lib downloads dash-named libraries; closed after prolonged inactivity without a recorded fix or maintainer explanation.
qwen3.6-35b-a3b-mtp-q6 — — Closed without resolution. The request to automatically convert dashes to underscores in fetched library paths was acknowledged but never implemented, leaving the issue abandoned.
qwen/qwen3.6-35b-a3b — — Closed without a fix. charmcraft fetch-lib still creates paths with dashes for hyphenated charms, breaking imports. Contributors agreed underscores should be used, but no resolution was implemented.
qwen/qwen3.6-35b-a3b — — Closed and abandoned without resolution. A contributor validated the bug and recommended standardizing dash-to-underscore conversion for library importability. No fix or pull request was submitted.
qwen3.6-35b-a3b-mtp-q6 — — Closed without implementation. The request to automatically convert dashes to underscores in charmcraft fetch-lib paths was acknowledged but never addressed, resulting in an abandoned issue.

Update history

No update history recorded yet.

Related work

  • Likely Fixed By: canonical/charmcraft#1701 (confidence 88%)

    Commit 3af2c248 made fetch-libs work with underscores, matching the requested path normalization.

Related issues

Issue Project State Summary Similarity
#1671 `fetch-libs` command requires being logged into charmhub charmcraft closed Fixed by merged PR #1702 (commit 1da46c8f), which made fetch-libs use anonymous Charmhub access. PR #1701 also fixed handling of library names containing underscores.
74%
#214 Support charm libraries renaming charmcraft closed Closed as stale without implementation; library-fetch logic still contains a rename-handling TODO tied to #214.
73%
#1788 `fetch-lib` should work from anywhere charmcraft open `fetch-lib` regressed in Charmcraft 3.1.1 by requiring charmcraft.yaml outside projects; a minimal reproducer was provided, and a maintainer explicitly kept the compatibility request open.
71%