flutter: dont fail on missing lockfile

This commit is contained in:
Maciej Krüger 2023-12-21 11:57:23 +01:00
parent 145c291ca6
commit 9e046794a8
No known key found for this signature in database
GPG Key ID: 0D948CE19CF49C5F

View File

@ -47,7 +47,7 @@ runCommand "flutter-artifacts-${platform}"
mkdir "$FLUTTER_ROOT/bin/cache"
HOME="$(mktemp -d)" flutter precache -v '--${platform}' ${builtins.concatStringsSep " " (map (p: "'--no-${p}'") (lib.remove platform platforms))}
rm -r "$FLUTTER_ROOT/bin/cache/lockfile"
rm -rf "$FLUTTER_ROOT/bin/cache/lockfile"
find "$FLUTTER_ROOT" -type l -lname '${flutter'}/*' -delete
cp -r bin/cache "$out"