New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
package scripts not executed since 5.1.3 #3233
Comments
Seems to be caused by a dependency circle |
I ran into the same thing today again, but now I don't have any circular dependencies.. still not sure what's going on (lerna 5.2.0), but it's for sure that even though the package list on lerna run build --no-private says it has exectued the packages, it does not run the commands. |
Alright, now I found the culrpitn again, it's still a dependency circle, BUT, since the last fix #2874 it doesn't show any dependecy circles anymore.
with latest lerna, no error message, and the weird behaviour that packages get skipped during execution. Propoesd change: when running with reject-cycles, the alreadyVisited nodes check gets skipped? |
Current Behavior
we have a mono repo with about 100 packages,
running
lerna run build
does not execute all build scripts anymore since 5.1.3.Even though the output is showing that it executes 100 packages, it does only run it in about half of it.
I tested it by putting "exit 1" inside of a build script of one packgae that wasn't executed, it fails (as supposed to) in 5.1.2, but runs wihtour any errors (and the script is therefore not executed) since 5.1.3.
Expected Behavior
Should execute the defined script in each package, like the output even says.
Steps to Reproduce
The issue causing this is this change here: https://github.com/lerna/lerna/pull/2874/files
Removing this check, fixes the issue for me.
Failure Logs / Configuration
lerna.json
Environment
Environment info:
System:
OS: Linux 5.13 Ubuntu 21.10 21.10 (Impish Indri)
CPU: (8) x64 11th Gen Intel(R) Core(TM) i7-1185G7 @ 3.00GHz
Binaries:
Node: 16.15.0 - /usr/local/bin/node
Yarn: 1.22.11 - /usr/local/bin/yarn
npm: 8.5.5 - /usr/local/bin/npm
Utilities:
Git: 2.32.0 - /usr/bin/git
npmPackages:
lerna: ^5.1.3 => 5.1.3
The text was updated successfully, but these errors were encountered: