-
Notifications
You must be signed in to change notification settings - Fork 210
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
Support for resolving package config and pubspec.lock in workspaces #3684
Conversation
The CI failures seem unrelated. |
I added a test of the package graph creation. And support for .packages. |
Not sure what goes wrong in the community test. I am not able to reproduce the failures locally. |
I can look into that, but probably not until next week. Or possibly @simolus3 would have some idea, but it seems like the code just isn't getting generated for some reason. |
The failure looks surprising to me as well. I commit generated code into the repository and the build integrity test shows that re-running My best guess is that we hit a race condition where the build integrity test started running (and thus deleting previous generated sources) while the other tests were being loaded, thus causing these errors? I have disabled concurrency for the community tests in the drift repository, I hope that resolves the problem. |
I restarted the job and it passed 👍 |
Anything more blocking this? |
This is really another good case for adding the dependency types and relationships in |
Yeah - lets do that another time! |
Gentle ping |
build_runner_core/test/fixtures/workspace/.dart_tool/package_config.json
Outdated
Show resolved
Hide resolved
I can upload a change to address my two nits |
Instead of expecting
pubspec.lock
and.dart_tool/package_config.json
to reside in the same folder as pubspec.yaml, we visit each parent of the current directory until we find a.dart_tool/package_config.json
, and expectpubspec.lock
to exist next to that.Also invoke the generated scripts with an explicit packageConfig.
This is to support running
build_runner build
in a workspace package, as implemented in dart-lang/pub#4127