| Commit-Queue | +1 |
I don't really see us getting around this since we don't import the pub package itself. But the migration tool doesn't work smoothly without this special case since so many packages aren't migrated.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
// Apply Dart 3 package compatibility re-interpretation:I don't think I ever knew that this was a thing. Could you include the URL from the CL comment (https://dart.dev/resources/dart-3-migration#dart-3-backwards-compatibility) in this comment for future reference?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Commit-Queue | +2 |
// Apply Dart 3 package compatibility re-interpretation:I don't think I ever knew that this was a thing. Could you include the URL from the CL comment (https://dart.dev/resources/dart-3-migration#dart-3-backwards-compatibility) in this comment for future reference?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
2 is the latest approved patch-set.
The change was submitted with unreviewed changes in the following files:
```
The name of the file: pkg/analysis_server/lib/src/utilities/pubspec.dart
Insertions: 1, Deletions: 0.
@@ -29,6 +29,7 @@
// If the package is null-safe (min SDK >= 2.12.0) and has max constraint
// <3.0.0 (which is parsed as max: 3.0.0-0, includeMax: false),
// re-interpret the max constraint as <4.0.0.
+ // https://dart.dev/resources/dart-3-migration#dart-3-backwards-compatibility
if (constraint is VersionRange) {
var min = constraint.min;
var max = constraint.max;
```
[migrate] Support Dart 3 backwards compatibility.
Pub reinterprets `<3.0.0` as `<4.0.0` when the lower constraint is
`2.12` or higher which allows users to use Dart 3 sound null safety
with packages that support 2.12 null safety.
https://dart.dev/resources/dart-3-migration#dart-3-backwards-compatibility
Currently, the migrate tool doesn't take this into consideration and
will flag the constraint as a dependency error.
This CL will add the extra case onto the check.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |