Closed mg3994 closed 3 weeks ago
We do strive to pana up-to-date, usually it takes us a couple of days. But we have reduced summer staffing at the moment (and I guess this release missed deployment last week).
However, if you specify SDK constraints on either Flutter or Dart SDK that is newer than the stable version we built into pana when we deployed pub.dev
, then pana should dynamically download such version and use it for analysis.
This suggests a bug in our dynamic selection of Flutter analysis SDK. https://github.com/dart-lang/pub-dev/blob/master/pkg/pub_worker/lib/src/bin/pana_wrapper.dart#L186
The package in question has SDK constraints:
environment:
sdk: ">=3.4.4 <4.0.0"
flutter: ">=1.17.0"
Then it shouldn't pick a Flutter SDK that doesn't contains Dart 3.4.4 or newer.
I agree, the SDK selection could be improved. However, in this case, I'd also argue that if the package is expecting a later Flutter SKD, then it should specify it in its SDK dependencies, otherwise the constraint is a bit misleading.
I recently uploaded the
antinna_ui_kit
package to pub.dev, which requires the Dart SDK version>=3.4.4 <4.0.0
. However, during the analysis, it seems thatpana
is currently using Flutter version 3.22.2, Even though flutter new Stable version is there.Suggested Solution:
Please upgrade the Flutter SDK used in the
pub.dev
for pana tool. As new Stable release is there Flutter release archive