← Back to issue list

feat(extensions): support filtering by base

View original Github issue

Metadata

Project
snapcraft
Number
#6214
Type
pull request
State
open
Author
gcomneno
Labels
Created
2026-04-25 10:16:13+00:00
Updated
2026-04-25 11:26:50+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

Fixes #4360. This adds a `--base` option to `snapcraft extensions`, matching the existing `snapcraft plugins --base` behaviour. With this change, users can list only the extensions supported by a specific base, for example: snapcraft extensions --base core24 Changes: - add `--base` to the `extensions` command - filter listed extensions by supported base when provided - reject unsupported and maintenance bases - add unit coverage for base filtering and errors Validation: - `pytest -q tests/unit/commands/test_list_extensions.py -rs` - `ruff check snapcraft/commands/extensions.py tests/unit/commands/test_list_extensions.py`

Evaluation history

No evaluation history available.