-
Notifications
You must be signed in to change notification settings - Fork 58
FED-3977 Allow analyzer 7 #982
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
The errors look like:
Failed to load "test/vm_tests/builder/declaration_parsing_test.dart":
../../../.pub-cache/hosted/pub.dev/build_test-2.2.3/lib/src/in_memory_reader.dart:16:16: Error: Type 'MultiPackageAssetReader' not found.
implements MultiPackageAssetReader, RecordingAssetReader {
Since Dart 3 can still resolve to 2.x when using older analyzer versions
| - name: Delete Dart-2-only files when running on Dart 3 | ||
| - id: install | ||
| name: Install dependencies | ||
| run: dart pub get |
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.
Moved pub get one step earlier in all these, since update_tests_for_dart_3.sh reads the resolved version in pubspec.lock
| final nullSafetyCommentText = 'Using nullSafety: $nullSafety.${nullSafety ? ' ' : ''} $nullSafetyReason'; | ||
|
|
||
| // Generated part files must have matching language version comments, so copy them over if they exist. | ||
| // TODO use CompilationUnit.languageVersionToken instead of parsing this manually once we're sure we can get on analyzer version 0.39.5 or greater |
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.
Addressed this while I was in here
| @@ -0,0 +1,33 @@ | |||
| import 'dart:mirrors'; | |||
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.
FYI this isn't the first usage of dart:mirrors in over_react's builder; it's also used by instantiateAnnotation here in transformer_utils, which is used in most of the places the builder reads fields on annotations (e.g., @Props(...), @Accessor(...)).
sydneyjodon-wk
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.
+10 🎉
- CI passes
- verified that all stable / Dart 3 CI runs are running on analyzer 7 as expected
|
@Workiva/release-management-p |
rmconsole-wf
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.
+1 from RM
Motivation
over_react supports analyzer
>=5.13.0 <7.0.0, which doesn't include the latest 7.x releases.We want to support the latest analyzer, to unblock upgrading packages that depend on newer analyzer versions.
Changes
package:analyzerin over_react were affectedlanguageVersionCommentneeded in dart+style 3.xset -x)Release Notes
>=5.13.0 <8.0.0(allow v8)>=2.0.0 <4.0.0(allow v3)Review
See CONTRIBUTING.md for more details on review types (+1 / QA +1 / +10) and code review process.
Please review:
QA Checklist
Merge Checklist
While we perform many automated checks before auto-merging, some manual checks are needed: