Open CarlOlson opened 5 months ago
@CarlOlson thanks for the detailed report and reproduction! 🙏
There's some ongoing work related to this "behind the scenes" currently. Hopefully this and more things related to pinned dependencies will clear up a lot in the not too distant future.
Maybe one of our monorepo users has some insight already. Cc @tsnobip @fhammerschmidt
This is hard to explain, so here is a reproducible example. The names of workspaces and modules were chosen to somewhat reflect the project I discovered this in. This was confirmed on version
10.1.2
and11.0.1
.If you have 3 workspaces W_root, W_a, and W_b. W_root adds the two others as pinned dependencies. W_a and W_b both contain a dev directory with some module
M
. If W_a includes W_b as a dev dependency, then opens W_b, thenW_b.M
will collide withW_a.M
when used.Snippet from the example repo's output:
What do I expect?
"type": "dev"
directory to never collide when building a different project.Hint: Did you mean SrcHelpers.Config or TestHelpers.Config?
(this wouldn't fix the problem, but would have made discovering the cause easier)