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
If run-many is run with list of packages and some of those packages are lacking the specified target the command ends with fail state.
nx run-many --target=custom-command --projects=products-home-page,products-product-detail-page,cart-cart-page
> NX Ran target custom-command for 3 projects (3ms)
✔ 0/0 succeeded [0 read from cache]
✖ 0/0 targets failed, including the following:
View logs and run details at https://nx.app/runs/il2jhazQsG
> NX Cannot find configuration for task products-product-detail-page:custom-command
Pass --verbose to see the stacktrace.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command
Expected Behavior
The run-many runs on successfully and skips projects without the target as in nx prior 15.1.0.
It's probably caused by #11659.
Expected output:
yarn nx run-many --target=custom-command --projects=products-home-page,products-product-detail-page,cart-cart-page
yarn run v1.22.18
$ nx run-many --target=custom-command --projects=products-home-page,products-product-detail-page,cart-cart-page
> NX the following do not have configuration for "custom-command"
- products-product-detail-page
- cart-cart-page
✔ nx run products-home-page:custom-command (165ms)
——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————
> NX Successfully ran target custom-command for 1 projects (169ms)
View logs and investigate cache misses at https://nx.app/runs/dVRkjIryLr
Done in 0.69s.
$ nx report
> NX Report complete - copy this into the issue template
Node : 16.14.2
OS : linux x64
yarn : 1.22.18
nx : 15.1.1
@nrwl/angular : 15.1.1
@nrwl/cypress : 15.1.1
@nrwl/detox : Not Found
@nrwl/devkit : 15.1.1
@nrwl/esbuild : Not Found
@nrwl/eslint-plugin-nx : 15.1.1
@nrwl/expo : Not Found
@nrwl/express : Not Found
@nrwl/jest : 15.1.1
@nrwl/js : 15.1.1
@nrwl/linter : 15.1.1
@nrwl/nest : Not Found
@nrwl/next : Not Found
@nrwl/node : Not Found
@nrwl/nx-cloud : 15.0.2
@nrwl/nx-plugin : Not Found
@nrwl/react : 15.1.1
@nrwl/react-native : Not Found
@nrwl/rollup : 15.1.1
@nrwl/schematics : Not Found
@nrwl/storybook : 15.1.1
@nrwl/web : 15.1.1
@nrwl/webpack : 15.1.1
@nrwl/workspace : 15.1.1
typescript : 4.8.4
---------------------------------------
Local workspace plugins:
---------------------------------------
Community plugins:
@ngrx/component-store: 14.0.2
@ngrx/effects: 14.0.2
@ngrx/entity: 14.0.2
@ngrx/router-store: 14.0.2
@ngrx/store: 14.0.2
@ngrx/store-devtools: 14.0.2
Done in 0.27s.
The text was updated successfully, but these errors were encountered:
Current Behavior
If
run-many
is run with list of packages and some of those packages are lacking the specified target the command ends with fail state.Expected Behavior
The
run-many
runs on successfully and skips projects without the target as in nx prior 15.1.0.It's probably caused by #11659.
Expected output:
Steps to Reproduce
nrwl/nx-examples#243
Failure Logs
Environment
The text was updated successfully, but these errors were encountered: