yarnpkg / berry

📦🐈 Active development trunk for Yarn ⚒
https://yarnpkg.com
BSD 2-Clause "Simplified" License
7.46k stars 1.12k forks source link

[Bug?]: --exclude doesn't work when used together with --since #6609

Open FezVrasta opened 4 days ago

FezVrasta commented 4 days ago

Self-service

Describe the bug

If I use yarn workspaces foreach --parallel --interlaced --recursive --from '{backend,web-client}' --exclude '{backend,web-client}' run build all the packages needed by backend and web-client workspaces are built, and backend and web-client aren't. All good!

But if I add the --since flag, also the backend and web-client workspaces are built. This is unexpected.

To reproduce

yarn workspaces foreach --parallel --interlaced --recursive --from '{backend,web-client}' --exclude '{backend,web-client} --since run build

Environment

System:
    OS: macOS 15.1
    CPU: (10) arm64 Apple M1 Max
  Binaries:
    Node: 22.11.0 - /private/var/folders/c6/klv3h1_977v_x6t45d515kzc0000gn/T/xfs-d63df4c4/node
    Yarn: 4.5.1 - /private/var/folders/c6/klv3h1_977v_x6t45d515kzc0000gn/T/xfs-d63df4c4/yarn
    npm: 10.9.0 - ~/.local/share/mise/installs/node/22.11.0/bin/npm

Additional context

No response