asdf-community / asdf-flutter

flutter plugin for the asdf version manager
https://github.com/asdf-vm/asdf
MIT License
111 stars 31 forks source link

Change jq filter to allow installing dev versions #3

Closed metdinov closed 4 years ago

metdinov commented 4 years ago

Some dev versions don't start with a v character, so the previous filter was simply removing the major version number.

Examples:

{
  "releases": [
    {
      "hash": "8f7327f83a3e094285163ae402c6f94190fc1674",
      "channel": "dev",
      "version": "1.18.0-dev.4.0",
      "release_date": "2020-04-07T16:30:52.454830Z",
      "archive": "dev/macos/flutter_macos_1.18.0-dev.4.0-dev.zip",
      "sha256": "e71646659a06fe3a6203c15817ff7299825981b998f14cd344ac9877867f3957"
    },
    {
      "hash": "de1e5729165b61829a8fa7c41b449c6c7ad74c84",
      "channel": "dev",
      "version": "1.18.0-dev.3.0",
      "release_date": "2020-04-07T04:17:19.757100Z",
      "archive": "dev/macos/flutter_macos_1.18.0-dev.3.0-dev.zip",
      "sha256": "7f96bb3faac70774f521cdf3a906c808cfe4041192fb3fef984a10b06a7dc73f"
    }
  ]
}
oae commented 4 years ago

thank you for the PR.