-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Allow a custom dart version in the environment in computeExclusiveDevDependencies
#158370
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
Conversation
ab84e78 to
77439e6
Compare
dart version in the environment in computeExclusiveDevDependencies
matanlurey
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In general LGTM.
Tests will need to be tweaked a bit for this to pass everywhere, but I can push a few commits up and help you land this. Thanks for noticing and thanks for writing a test!
|
There is one failing test still: plugin_test_macos` on a PR: Unable to find a built dart sdk at: "/Volumes/Work/s/w/ir/x/t/flutter_devicelab_plugin_test.Nu6VxW/engine/out/foo/dart-sdk" or a prebuilt dart sdk at: "/Volumes/Work/s/w/ir/x/t/flutter_devicelab_plugin_test.Nu6VxW/engine/flutter/prebuilts/macos-x64/dart-sdk"It looks like this test, which is only run on macOS, creates a simulated local-engine environment, but does so incorrectly (that is, it only adds a single artifact and misses things like the pre-built Dart SDK): flutter/dev/devicelab/lib/tasks/plugin_tests.dart Lines 125 to 138 in 2efdc74
It looks like this is quite old, and we never observed a problem because it happened to be that nothing in the Flutter tool path for |
|
@yiiim After talking with folks internal here, I'm going to have to put this PR on hold and refactor the base assumptions to use the |
|
This pull request has been changed to a draft. The currently pending flutter-gold status will not be able to resolve until a new commit is pushed or the change is marked ready for review again. For more guidance, visit Writing a golden file test for Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. |
computeExclusiveDevDependenciesdoes not useArtifactwhen executing the dart command, which can cause exceptions when the dart version in the environment variable is different from the dart version used to execute the flutter command. This directly prevents theflutter runcommand from running in the main channel when the environment variable is not set.Pre-launch Checklist
///).If you need help, consider asking for advice on the #hackers-new channel on Discord.