subosito / flutter-action

Flutter environment for use in GitHub Actions. It works on Linux, Windows, and macOS.
MIT License
2.16k stars 191 forks source link

flutter-version parameter is ignored when cache is used. Is this behavior correct? #317

Open ssthiago opened 1 week ago

ssthiago commented 1 week ago

I noticed an interesting behavior when I use the flutter-version parameter passing a specific version.

As suggested in the documentation, if I try to use cache as cache-path: "${{ runner.tool_cache }}/flutter/:channel:-:version:-:arch :", version always returns the latest version of flutter, ignoring the value passed in flutter-version.

Is this behavior correct?

Wouldn't it make more sense if, when I pass the flutter-version: 3.19 parameter, for example, the version parameter receives flutter-version and not the latest version of flutter?