(charmlibs) List libraries for a given charm
Metadata
Current evaluation
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.
Suggested action: —
No scores available.
Issue body
This adds the command itself, and the supporting method in the store layer.
For ListLibCommand:
- it can run standalone, or with a given charm name
- when standalone, it will try to access metadata.yaml, and if there it will list all libraries for that charm
- if a charm name is indicated, will just list all libraries for that charm
In the store layer:
- a new multi-functional `get_libraries_tips` is added
- it's bulk, and supports all the flexibility in the store for each query:
- just the library id (will get the tip for that library)
- just the charm name (will get the tip for all libraries of that charm)
- charm and library names (alternative identification of a specific library)
- for any of those cases, `api` is supported (it will give the tip for that API version)
- note that this is current more flexible than needed for ListLibCommand itself, but more of this will be used in the FetchLibCommand (in the next branch)
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | 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. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged. Adds a command to list libraries for a charm and a flexible get_libraries_tips store method. Enables bulk queries by ID, charm, or API version, preparing the codebase for future library fetching features. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged facundobatista's PR adding a ListLibCommand to list charm libraries and a flexible get_libraries_tips store method. The method supports bulk queries by library ID, charm name, or API version, enabling future FetchLibCommand integration. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #215 (charmlibs) Fetch the specified library | charmcraft | merged | 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. |