Use .dagger-root to improve module load performance on large monorepos (#8496, #8499)#8953
Use .dagger-root to improve module load performance on large monorepos (#8496, #8499)#8953idlsoft wants to merge 1 commit into
Conversation
|
This PR is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
|
Should open an issue proposing this change before opening a PR, but I don't think this is the right approach. You mention #8496 (in the title), but I think the better solution there is to remove those includes by default, and have users be explicit if they want to add anything outside their module root. Additionally with #6627, more stuff should be excluded by default, even within your module like a heavy We could do both of these soon, now that #8818 has been merged. It's just a matter of bandwidth and priorities right now. This way the module's context directory will continue to be limited at the git repo root, which we make assumptions about all over the code base, without affecting performance since if you don't add any files outside the module's root (in |
This is definitely a stopgap solution. I was originally thinking about adding settings to
Right, I think most of the time is being spent in trying to locate all the '**/...' patterns. In my example the module had one simple root, but ideally it'd be nice to be able to specify a list of directories to include in the module context, so you could have the main module + a few libraries with common build logic. |
You can already do this with the However, if possible, a better solution is to put the common build logic in its own module and install it as a dependency where needed. |
|
This PR is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
|
This PR was closed because it has been stalled for 7 days with no activity. |
daggerlooks for the git repo root when it loads a module.This has a performance impact, especially on large monorepos.
This change will allow to limit the scope of the module by adding a
.dagger-rootfile.