nrwl / nx

Smart Monorepos · Fast CI
https://nx.dev
MIT License
23.16k stars 2.31k forks source link

Exclude flag for affected and run-many commands doesn't work as expected #19210

Closed marcus-sa closed 11 months ago

marcus-sa commented 11 months ago

Current Behavior

Given a workspace with projects where apps have an example tag, libraries have a package tag and some of these have a database tag, I want to exclude them all except for projects with a package tag that don't have a database tag.

The following command still test packages with a database tag: nx run affected:test --exclude='*,!tag:package,tag:database'

Expected Behavior

To exclude packages with a database tag.

GitHub Repo

It didn't work before this commit either https://github.com/deepkit/deepkit-framework/pull/476/commits/472f60a160774ef220868ae9609ce17a173f2af0

Steps to Reproduce

Nx Report

 Node   : 18.17.0
 OS     : darwin-x64
 pnpm   : 8.7.5

 nx                 : 16.8.1
 @nx/js             : 16.8.1
 @nx/jest           : 16.8.1
 @nx/linter         : 16.8.1
 @nx/workspace      : 16.8.1
 @nx/angular        : 16.8.1
 @nx/cypress        : 16.8.1
 @nx/devkit         : 16.8.1
 @nx/esbuild        : 16.8.1
 @nx/eslint-plugin  : 16.8.1
 @nx/node           : 16.8.1
 @nx/plugin         : 16.8.1
 @nx/rollup         : 16.8.1
 @nrwl/tao          : 16.8.1
 @nx/vite           : 16.8.1
 @nx/webpack        : 16.8.1
 typescript         : 5.2.2

Failure Logs

No response

Package Manager Version

No response

Operating System

Additional Information

No response

github-actions[bot] commented 10 months ago

This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context.