← Back to issue list

(charmlibs) Fetch the specified library

View original Github issue

Metadata

Project
charmcraft
Number
#215
Type
pull request
State
merged
Author
facundobatista
Labels
Created
Updated
Closed

Current evaluation

Merged following approval and passing CI. Introduces FetchLibCommand to retrieve or update specified or all charmlibs, alongside a supporting store layer method. Changes span five files with 332 additions, finalizing the charmlibs-draft branch.

Suggested action:

No scores available.

Issue body

This adds the command itself, and the supporting method in the store layer. The FetchLibCommand can run standalone, or with a given library full name: - when standalone, it will update all the libraries already locally in disk - if a full library name is indicated, will just get/update that library In any case, verifications are done that the library can be downloaded for the first time or updated, and the user will be informed of the final action. Regarding the store layer, a simple method was added to support the GET library. NOTE: this is the final cut of the original `charmlibs-draft` branch.

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Merged following approval and passing CI. Introduces FetchLibCommand to retrieve or update specified or all charmlibs, alongside a supporting store layer method. Changes span five files with 332 additions, finalizing the charmlibs-draft branch.
qwen3.6-35b-a3b-mtp-q6 Merged implementation of the FetchLibCommand, allowing retrieval or updates of specific or all local charmlibs alongside store layer GET support. Finalized from the charmlibs-draft branch.
qwen3.6-35b-a3b-mtp-q6 Merged implementation of FetchLibCommand to fetch or update specific or all charmlibs, alongside a store layer GET method. Finalized from the charmlibs-draft branch.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#206 (charmlibs) List libraries for a given charm charmcraft merged Merged. Adds ListLibCommand to list charm libraries and a flexible get_libraries_tips store method for bulk queries by ID, charm, or API version. Approved by two reviewers, passed CI, and modified five files.
76%
#1663 refactor: remove unused fetch-lib command charmcraft merged Merged removal of an unused internal fetch-lib command implementation. The public charmcraft fetch-lib command remains available. Approved by three reviewers and passed CI checks.
70%
#1977 Alert about all charmlib updates available (not just ones matching the spec) on pack charmcraft open Feature request: charmcraft pack should warn about any available charmlib update, not just those matching the charm-libs spec; fetch-libs likewise. Open since 2023, no maintainer response beyond Jira sync; charmlibs commands are now deprecated.
70%