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
Lerna sometimes runs commands in the wrong directory? #3201
Comments
This seems to be related to npm |
Looks like the Windows issue is indeed an npm bug - npm/cli#5066 though it needs npm/cli#5086 releasing before it's fixed. It doesn't explain the running of commands in the wrong directory on other platforms though. |
Turns out I'm actually running |
Current Behavior
Sometimes in CI, lerna runs commands in the wrong directory. This has only started happening in the last couple of days.
I have a monorepo with a bunch of js projects and we run dependency-check in all of them. Each package has different ignores specific to that package. Sometimes the check fails in a given package with unused deps, but looking at the command that's been run, it only exists in a sibling package, not the one in which the check failed 😕
Perhaps related, running commands on Windows has also started failing occasionally withnpm/cli#5066The filename, directory name, or volume label syntax is incorrect.
Windows seems to fail more consistently than MacOS or Linux.
Restarting the build sometimes makes it pass.
Expected Behavior
The correct command should be run in the correct package
and commands should run on Windows.Steps to Reproduce
I've not managed to get a solid repro, I'm sorry. It just happens occasionally in CI.
Some examples:
https://github.com/libp2p/js-libp2p-interfaces/runs/7040280502?check_suite_focus=true (Windows failure)Failure Logs / Configuration
lerna.json
Environment
The text was updated successfully, but these errors were encountered: