Skip to content

Commit

Permalink
Max Dart SDK 3.2.X (#254)
Browse files Browse the repository at this point in the history
  • Loading branch information
passsy authored Apr 5, 2024
1 parent 10feb1b commit 3b2d404
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions sidekick_core/lib/src/commands/update_command.dart
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@ class UpdateCommand extends Command {
.toList();

final futureDartSdkVersionWithLatestPatch = futureDartSdkVersions
// Make the maximum compatible Dart SDK 3.2.x, because dcli is not
// compatible with Dart SDK 3.3.0 anymore
// Dart 3.3.0 waitFor requires --enable_deprecated_wait_for in the VM
// Dart 3.4.0 waitFor was removed
// Waiting for dcli 4.0.0 to be released https://github.com/onepub-dev/dcli/issues/229
.filter((version) => version < Version(3, 3, 0))
.groupBy((v) => Version(v.major, v.minor, 0))
.mapEntries((versionGroup) => versionGroup.value.maxBy((v) => v.patch)!)
.toList();
Expand Down

0 comments on commit 3b2d404

Please sign in to comment.