cirruslabs/docker-images-flutter

Doesn't work with Dart 2.16.2

Closed this issue · 4 comments

aalex commented

Hi!
Dart 2.16.2 has been released on March 28th, 2022.

To build my Docker image for a Flutter web project, I needed to downgrade our version of Dart in our pubspec.yaml:

environment:
  sdk: ">=2.16.1 <3.0.0"
dependencies:
  flutter:
    sdk: flutter

By default, when creating a new project, it was 2.16.2, but then building the Docker image off you base image would not work.

Hi,

This is probably because you are using the 2.10.3 image which works with the 2.10.3 flutters SDK but.. You have created a project with the 2.10.4 SDK.

You should never use a different SDK between your local environment and your CI's one.

Your "issue" (it's not an issue from my point of view) will be solved as soon as this PR will be merged #202

aalex commented

Hi!
Thank you for your kind answer. I can't wait for this PR to be merged!

I think that it is an issue, while we are waiting for new versions of the image to be released. I has prevented me and my team from using the latest Flutter version in our new project while using your great image for CI. If there is a way that we can help to make it easier to support the latest versions of Flutter when there is a new release, I'd be happy to contribute in some way. Perhaps we simply need to manually open a PR like #202? Or is there a way to automate this?

Thanks again.

This may help in case of making it automatic: https://storage.googleapis.com/flutter_infra_release/releases/releases_linux.json
It is an official endpoint with the available Flutter SDK versions.

I think this issue can be closed, Dart 2.16.2 was released years ago.

cc @fkorotkov