-
Notifications
You must be signed in to change notification settings - Fork 9.8k
[flutter_plugin_tools] Test and comment Dart analysis #4194
[flutter_plugin_tools] Test and comment Dart analysis #4194
Conversation
Adds a unit test and comments intended to avoid accidental breakage of the Dart repo's run of analysis against this repository. Addresses flutter#4183 (comment)
@devoncarew How does this look? |
This looks good - I'm guessing that this will help in terms of reducing upstream breakages (or letting people know when we'll need to update things upstream). I wonder if a good end state would be to allow a bare run of |
What is |
# DO NOT move or delete this file without updating | ||
# https://github.com/dart-lang/sdk/blob/master/tools/bots/flutter/analyze_flutter_plugins.sh | ||
# which references this file from source, but out-of-repo. | ||
# Contact stuartmorgan or devoncarew for assistance if necessary. | ||
|
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.
Wouldn't it make more sense to have this warning in the cirrus file next to the invocation there?
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.
Good thought, that's more likely to be noticed in review. I left this longer explanation here, and added a shorter warning to .cirrus.yml that references it.
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.
LGTM. This is definitely an improvement. I would have rather seen the cirrus script and the dart script share invocations so they can both be updated from this repo. Hopefully it wont be necessary after all this cleanup though.
Ah, sorry, I'd meant flutter_plugin_tools, the tool in script/tool (I'd seen 'plugin_tool' from https://github.com/flutter/plugins/blob/master/script/common.sh#L11 but forget it was a bash function). |
The long term goal is not too have anything on custom analysis files, as previously discussed. I'm not sure how a totally bare invocation would work though; you added the SDK flag specifically for this use (IIRC because you preferred that to adjusting PATH, which would be the other way to run it). |
Adds a unit test and comments intended to avoid accidental breakage of the Dart repo's run of analysis against this repository. Addresses flutter#4183 (comment)
Adds a unit test and comments intended to avoid accidental breakage of the Dart repo's run of analysis against this repository. Addresses flutter#4183 (comment)
Adds a unit test and comments intended to avoid accidental breakage of
the Dart repo's run of analysis against this repository.
Addresses #4183 (comment)
Pre-launch Checklist
dart format
.)[shared_preferences]
///
).