Closed bartekpacia closed 2 years ago
@bartekpacia What about using subosito/flutter-action@v2
?
I tried a few times but the result was the same :(
Some more info: this problem occurs in all new repositories in our organization that (attempt to) use this action. Flutter isn't downloaded and then it fails with the same error message as above.
Self hosted runners?
Nope, GitHub provided ones.
Definitely try the latest version, there was something broken. See https://github.com/subosito/flutter-action/issues/180
@kuhnroyal Yeah, I also experienced that problem, but 2.6.1 fixed it. The problem I described happens in both v2.5 and v2.6.1.
Hmm, can you show your matrix? I have no idea but in the output you posted, it seems the version/architecture are somehow formatted really weird with some links in between.
2.10.5:X64:x64|null:null:x64
is also really odd.
Here it is a chunk of my workflow file
jobs:
main:
name: Flutter ${{ matrix.channel }}${{ matrix.version }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- version: 2.10.5
- channel: stable
- channel: beta
steps:
- name: Clone repository
uses: actions/checkout@v3
- name: Install Flutter
uses: subosito/flutter-action@v2.5.0
with:
channel: ${{ matrix.channel }}
flutter-version: ${{ matrix.version }}
2.10.5:X64:x64|null:null:x64
is also really odd.
oh boi, sure it is
Hmm the matrix doesn't make much sense to me but I guess it is valid.
Anyway, try to run again with 2.6.1 and post the new output. Not having any other ideas.
I think it's because positional arguments break when we have blank value, for example:
- uses: subosito/flutter-action@v2
with:
channel:
flutter-version: 2.10.5
will be translated as setup.sh 2.10.5 X64
, which is missing channel argument; thus, the script failed to run correctly.
I think moving to named arguments would be better for preventing such cases. Will push an update when the changes are ready.
@bartekpacia I have pushed the changes, please retry using the main branch and let me know the result on your end.
- uses: subosito/flutter-action@main
@subosito Thanks, it works! Flutter is being downloaded just fine! 🚀
Problem solved, closing.
In case it's needed in the future, here's the commit that fixed this.
@bartekpacia Thanks for the confirmation. Let me publish a new tag and update v2
for this.
@bartekpacia Just published v2.6.2
and updated `v2; you can use that one instead of main.
I use this action in many projects of mine and it works fine. But there's this one project at work where it just broke and remains in this sad state.
That's how I use the action:
Nothing fancy. Newest version doesn't work as well. And below are the logs from this action's step:
I remember that it was working fine, then I enabled cache using
cache: true
argument. Something broke then, so I removed thatcache: true
and was hoping it would start working again, but it didn't.I've also cleared all the caches: