Giter VIP home page Giter VIP logo

Comments (6)

OndrejKunc avatar OndrejKunc commented on August 12, 2024 1

This issue is already being discussed in #46

Until it is resolved, I stick with the old version:

- task: FlutterInstall@0
  inputs:
    channel: "stable"
    version: custom
    customVersion: "1.12.13+hotfix.9"

from vsts-flutter-tasks.

Tregan avatar Tregan commented on August 12, 2024

Yeah in findLatestSdkVersion
return current.version.substring(1); // removing leading 'v'
should probably be changed to
return current.version;

and in downloadAndCacheSdk

let downloadUrl = `https://storage.googleapis.com/flutter_infra/releases/${channel}/${arch}/flutter_${arch}_v${versionSpec}.zip`;

to

let downloadUrl = `https://storage.googleapis.com/flutter_infra/releases/${channel}/${arch}/flutter_${arch}_${versionSpec}.zip`;

this will allow custom versioning e.g. v1.12.13+hotfix.9, but will by default not add the v

from vsts-flutter-tasks.

mcparry avatar mcparry commented on August 12, 2024

@Tregan I agree. However, anybody that already uses the "customVersion" parameter will then have to add a "v" to their parameter value. I can't think of a better solution though.

from vsts-flutter-tasks.

Tregan avatar Tregan commented on August 12, 2024

@mcparry Yep, sadly you'll have to add a 'v' in that case. But if you want to keep building on for example 1.12, where before you were using 'latest', you'll have to set a custom version anyway. I'll quickly make & test a fix and create a PR.

from vsts-flutter-tasks.

mcparry avatar mcparry commented on August 12, 2024

Oh yes, sorry, I didn't notice that #46 had already covered this problem. I'll close this issue.

from vsts-flutter-tasks.

skela avatar skela commented on August 12, 2024

When will this be updated in the market place? My dev ops builds still fail, even when defining custom versions.

from vsts-flutter-tasks.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.