-
Notifications
You must be signed in to change notification settings - Fork 212
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
Use workspaces #3717
Use workspaces #3717
Conversation
I am working on several more fixes related to how workspaces are handled in build_runner as well here. |
What local workflows do we expect to be impacted? Anything outside of changes to the behavior of Can we split this up a bit into separate PRs so that the code changes aren't mixed in with so much other noise? |
Maybe we can improve the help message... It currently just says:
Maybe just suggesting to remove the override would be enough? |
Yeah, I think the key thing I was missing is that there is effectively an implicit (path) override already there for all workspace packages. It made sense once I understood that, it just wasn't clear to me that was there at first. My thought when seeing this message was "but I need them to be path dependencies!". |
@natebosch note that I had to remove watching of the For now I just logged a warning that you would have to manually restart if you run a |
Inside nvm, that reference file is in Just walk up the parent directories until you find |
The problem isn't finding it, the problem is we have a file system abstraction which does not allow file access outside of the current package, or one of its transitive deps. Everything goes through an When running on a sub-package, the workspace packages is not a transitive dep, and so file cannot be referenced. We also don't allow access to anything outside of |
Could you reach the package_config through this abstraction before? That is also outside Maybe we need to make a special |
In the root package, you are allowed to read anything, so yes it was readable. It is only for dependencies that we block anything outside of lib by default, because we only want to expose the public files.
It breaks the model quite a lot, and I don't have the time to try and come up with a fix. It would have to a one-off for sure. Ultimately, this just means for people using workspaces, they will have to manually shut down and restart build_runner after running |
I think we can launch like that. Opening an issue for fixing this later though. |
Testing out the new pub workspaces feature, it seems to work!
General stuff I ran into:
It looks like mono_repo will need some work to support workspacesActually I think it is OK to rundart pub get
from any dir, so it might be OKIn general, it really wasn't difficult 👍
cc @jonasfj @kevmoo @natebosch @sigurdm