You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Command plugin should skip irrelevant targets when run without --target argument (#798)
### Motivation
In #795 we adjusted the logic of the command plugin because errors were
not propagating properly. As a result, we regressed behaviour when the
command plugin was run without any `--target` argument. In this mode,
the plugin runs on all targets. When it detects a misconfigured target
it errors, as it should. However, the classification of misconfigured
target included targets that were not intended for code generation at
all, resulting in errors running the command plugin on packages with
others targets.
### Modifications
- Add command plugin generation step to integration test
- If the command plugin is running without a `--target` argument and
cannot find _any_ of the required files, skip that target.
### Result
- Manual code generation with the command plugin fixed for packages with
other targets.
- Fixes#797.
### Test Plan
This PR includes two commits. The first adds a step to the integration
test, which runs the command plugin on the integration test package.
This will fail in CI. Then the second commit will provide the fix, which
should pass in CI. The commits will then be squash merged.
0 commit comments