CircleCI-Public / flutter-orb

Easily install Flutter SDK and package dependencies. Also wasily run unit test and lint. Supports Linux and macOS
https://circleci.com/developer/orbs/orb/tadashi0713/flutter-orb
MIT License
2 stars 15 forks source link

Need a way to rotate the flutter cache #46

Open maBarabas opened 4 months ago

maBarabas commented 4 months ago

Describe Request:

After a bug with the new M1 mac and a previous version of this orb, I have a non-functional installation of flutter cached. Flutter is always downloaded from github after restoring the cache:

image

It also looks like the cache will break when updating the install path, because it the cache always contains the old path, not the new path.

Also it looks like the cache resotration is slower than downloading the same amount of data off github. Could you speed up the cache restoration or add an option to disable caching completely?

Examples:

Supporting Documentation Links:

https://circleci.com/developer/orbs/orb/circleci/flutter#commands-install_sdk

maBarabas commented 4 months ago

Just changed Flutter version again, and the restored cache is not being used. Seems like the previous flutter installations is just not being detected.