Nx should not write any messages to stdout when it retries writing the project graph #26785
dextersealy
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a project that's using
lerna la --graph
to generate the project graph, which usesnx
internally. The code runs simultaneously in multiple processes and sometimes two processes will attempt to write the project graph cache at exactly the same time.When this happens, nx retries up to five times and eventually succeeds. But it writes a message to
stdout
that interferes with the output fromlerna la --graph
. Seenx/packages/nx/src/project-graph/nx-deps-cache.ts
Line 152 in 86da1b5
Nx should not write anything to
stdout
when the operation succeeds. Or, it should useconsole.error
instead ofconsole.log
so the message is written tostderr
instead ofstdout
.Beta Was this translation helpful? Give feedback.
All reactions