Open charlesritchea opened 4 months ago
It's possible this is a Lerna bug becaue we used to see similar behaviour when we used lerna bootstrap. Instead of this error bootstrap would silently skip some projects for no known reason, and would succeed on re-run.
Are there any known paths that should be put into RUN mount cache or in .dockerignore related to Nx?
Current Behavior
I have a Lerna/Nx monorepo with yarn workspaces. I'm not using Nx for anything other than Lerna runner at the moment Lerna and Nx are the latest, but this happened with earlier major version as well
We have an intermittent docker build failure that seems most likely to occur after merging latest from main.
Why I think this is a bug is because re-running the exact same docker build command always succeeds after this error. it makes CI a PITA because I have to manually re-run Github Actions just because of this.
Could we at least get better logging
Expected Behavior
Nx should not error here. @bar/foo-project absolutely does exist where it should and I've even run yarn install within the same docker RUN command to make sure symlinks are generated just in case even though I already ran yarn install in a previous dependencies layer (I've been trying lots of solutions to this problem) I've also run tree to make sure there wasn't an issue with docker COPY/ADD
GitHub Repo
No response
Steps to Reproduce
docker build yarn workspaces + lerna typescript repo. Can't send you my code sorry. I know this is not helpful, so maybe better logging to figure out why it think there is no project that is clearly there
Nx Report
Failure Logs
Package Manager Version
1.22.21
Operating System
Additional Information
base image is node:20-alpine (maybe some weird musl issue?)