reactive_plugin: Support arguments to charm build command
Metadata
Current evaluation
Added reactive-charm-build-arguments to pass custom flags to the charm build command. Merged after approval and passing CI, resolving issue #809.
Suggested action: —
No scores available.
Issue body
This patch adds the ability to pass arguments to the `charm build` command when using the reactive plugin.
Example charmcraft.yaml:
```yaml
type: charm
parts:
charm:
plugin: reactive
reactive-charm-build-arguments:
- --binary-wheels-from-source
build-packages:
- tox
- git
- python3-dev
- libffi-dev
source: src/
build-snaps:
- charm/latest/edge
build-environment:
- CHARM_INTERFACES_DIR: $CRAFT_PROJECT_DIR/interfaces/
- CHARM_LAYERS_DIR: $CRAFT_PROJECT_DIR/layers/
```
Fixes: #809
Signed-off-by: Frode Nordahl <frode.nordahl@canonical.com>
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | Added reactive-charm-build-arguments to pass custom flags to the charm build command. Merged after approval and passing CI, resolving issue #809. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged. Adds reactive-charm-build-arguments config to pass custom flags to charm build. Resolves #809. Documentation updates are pending. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged. Adds support for passing custom arguments to the charm build command via the reactive-charm-build-arguments configuration key in the reactive plugin, resolving issue #809. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #924 reactive plugin: call `charm build` with `-v` | charmcraft | closed | Closed after triage and internal ticket creation. Implementation guidance was provided to pass verbose flags to charm calls when verbosity is trace or debug. No fix or pull request was merged. | |
| #2021 feat(reactive): run charm build in verbose mode | charmcraft | merged | Merged after two approvals and passing CI. Automatically adds the --verbose flag to charm build arguments when no log level is specified, ensuring verbose output is captured in logs. Resolves issue #924. | |
| #809 Reactive plugin doesn't allow for other `charm` cli arguments. | charmcraft | closed | Closed without resolution. The reactive plugin could not pass custom charm CLI arguments like --layer-index. Despite user requests for reproducible builds and binary wheel support, the feature was abandoned due to inactivity. |