Closed damian-molinski closed 1 year ago
I don't think it's just a warning. The push-cache
step isn't recognizing any cache related to Flutter packages.
Hi @damian-molinski and @abdulhaq-e , we merged a PR to fix this issue and released a new version (0.16.0) with the changes. Could you please check if the issue still exists?
Looks good to me 👍
Issue description
Recently i started to notice warning in my workflow when using
Flutter Build
stepError (non fatal) says
From what i was able to understand how this step works [ i'm very bad with go, sorry :( ] its failes at this line https://github.com/bitrise-steplib/bitrise-step-flutter-build/blob/master/cache.go#L215.
It's trying to find
.packages
directory but it does not exists (not even on my local machine.https://dart.dev/tools/pub/cmd/pub-get#package-resolution says that
.dart_tool/
is the place to look forpackage_config.json
and https://dart.dev/tools/pub/cmd/pub-get#the-system-package-cache that
.pub-cache
is at root dir unless env var(PUB_CACHE) is set (https://dart.dev/tools/pub/environment-variables)..dart_tools/
.pub-cache/
Again step does not fail but it would be nice to speed up build time a bit with cache. If this is just warning sorry for bothering.