-
Notifications
You must be signed in to change notification settings - Fork 193
Bump SDK dependency to 3.3.0, replace removed dart:typed_data
type in test code
#953
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
`Unmodifiable...View` types were deprecated in favor of `asModifiableView`s members introduced in SDK 3.3.0. These types are now removed, so the protobuf package tests can't be built with the most recent SDK. Bump the SDK dependency to 3.3.0 (the version introduced `asModifiableView`) and replace the removed type with `asModifiableView` in the test.
Package publishing
Documentation at https://github.com/dart-lang/ecosystem/wiki/Publishing-automation. |
dart:typed_data
type in test codedart:typed_data
type in test code
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!
@@ -1,4 +1,4 @@ | |||
# Created with package:mono_repo v6.5.7 | |||
# Created with package:mono_repo v6.6.2 |
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.
We can also move away from using this mono_repo generated workflow file - in favor of some simple hand-written ones - if that's preferable.
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.
I think it's fine, I don't have any problems with 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.
#957 moves to using simple, hand-written workflow files per-package instead of a generated mono_repo one.
@@ -6,5 +6,4 @@ stages: | |||
- format | |||
- command: ./../tool/setup.sh | |||
- command: ./compile_protos.sh | |||
- analyze: --fatal-infos |
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 to removing this package
// supported SDK version. | ||
// ignore: deprecated_member_use | ||
testWithList(UnmodifiableUint8ListView(Uint8List.fromList(inputBuffer))); | ||
testWithList(Uint8List.fromList(inputBuffer).asUnmodifiableView()); |
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.
👍
@@ -644,7 +644,7 @@ class FileGenerator extends ProtobufContainer { | |||
// Generated code. Do not modify. | |||
// source: ${descriptor.name} | |||
// | |||
// @dart = 2.12 | |||
// @dart = 3.3 |
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.
Fantastic!
Unmodifiable...View
types were deprecated in favor ofasModifiableView
s members introduced in SDK 3.3.0.These types are now removed, so the protobuf package tests can't be built with the most recent SDK.
Bump the SDK dependency to 3.3.0 (the version introduced
asModifiableView
) and replace the removed type withasModifiableView
in the test.Fix new warnings with 3.3.0 in protoc_plugin tests and generated code.
Remove legacy tests in protoc_plugin as we no longer support unsound versions of Dart.
This PR also makes some small changes to make CI happy:
Fix analyzer issues in protobuf.
api_benchmark is getting bitrot, make analyzer issues in api_benchmark non-fatal so that we can run other CI jobs when it fails.
GitHub CI config is re-generated with the most recent mono_repo.
Closes #936.