← Back to issue list

pack: introduce support for --bases-index to specify targets (CRAFT-148)

View original Github issue

Metadata

Project
charmcraft
Number
#392
Type
pull request
State
merged
Author
cjp256
Labels
Created
Updated
Closed

Current evaluation

Merged. Adds --bases-index flag to pack command, letting users specify target build indices. Validated at runtime and passed to pack.run() to avoid extending deprecated arguments. Approved and passed CI.

Suggested action:

No scores available.

Issue body

Allow the user to specify --bases-index <index> to limit the targets being built. Pass this through pack's run() so we don't have to further extend the deprecated pack's arguments. These indices are validated at runtime because the current Validator does not have the config available to validate against. Signed-off-by: Chris Patterson <chris.patterson@canonical.com>

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Merged. Adds --bases-index flag to pack command, letting users specify target build indices. Validated at runtime and passed to pack.run() to avoid extending deprecated arguments. Approved and passed CI.
qwen3.6-35b-a3b-mtp-q6 Merged: adds --bases-index flag to pack command, allowing users to specify build targets. The index passes through pack.run() and validates at runtime to avoid extending deprecated arguments. Resolves CRAFT-148.
qwen3.6-35b-a3b-mtp-q6 Merged: adds --bases-index flag to pack command, allowing users to limit build targets. The flag is passed through pack.run() and validated at runtime to avoid extending deprecated arguments. Resolves CRAFT-148.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#390 build/pack: add support for bases in managed mode (CRAFT-131) charmcraft merged Merged changes adding bases support for managed mode in build/pack. Introduces a bases module, extends configuration validation with warnings, and updates run() to return built charms. Approved by two reviewers and merged.
71%