Azure DevOps CI / CD not installing latest flutter version

Viewed 584

My Azure DevOps configuration ask CI / CD to install latest version of flutter as you can see in the snapshot:

enter image description here

But Flutter old stable version "2.2.1-stable" is getting install

enter image description here

It seems google has changed their flutter download url so Azure not able to fetch latest version:

Download URL Flutter Stable 2.2.1 (OLD release URL): https://storage.googleapis.com/flutter_infra/releases/stable/macos/flutter_macos_2.2.1-stable.zip

Download URL Flutter Stable 2.5.1 (New Release URL): https://storage.googleapis.com/flutter_infra_release/releases/stable/macos/flutter_macos_2.5.1-stable.zip

They have not added any new release on the old URL so Azure fetching always last stable release which is 2.2.1

enter image description here

Any solutions so Azure DevOps script can download always latest version of Flutter?

2 Answers

To get the latest version you can use:

 - script: |
      brew install --cask flutter
Related