Munish Thakur
Munish Thakur

Reputation: 996

Azure DevOps CI / CD not installing latest flutter version

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?

Upvotes: 2

Views: 1483

Answers (2)

JMilanes
JMilanes

Reputation: 389

To get the latest version you can use:

 - script: |
      brew install --cask flutter

Upvotes: 0

Krzysztof Madej
Krzysztof Madej

Reputation: 40683

The extension aloisdeniel/vsts-flutter-tasks seems to be not mantained. Please try use this one Fluttter install - link to extension is here.

Please take a look here also

Just if you stumble across this package. It doesn't seem maintained. Someone was so kind and improved it and is also maintaining it currently. See https://github.com/hey24sheep/azure-flutter-tasks

Upvotes: 4

Related Questions