sony / flutter-elinux

Flutter tools for embedded Linux (eLinux)
BSD 3-Clause "New" or "Revised" License
424 stars 43 forks source link

flutter_tools.stamp version check in shared.sh always fails #195

Closed m4dm4x closed 1 year ago

m4dm4x commented 1 year ago

Hello,

in the file bin/internal/shared.sh the check

if [[ ! -f "$stamp_path" || "$version" != "$(cat "$stamp_path")" ]]; then

alwais fails beause the generated stampfile contains the revision and the tool arguments. This means on every run the script will try a tool update. The stampfile is generated by Flutter file flutter/bin/internal/shared.sh:

local compilekey="$revision:$FLUTTER_TOOL_ARGS"
...
echo "$compilekey" > "$STAMP_PATH"

See commit https://github.com/flutter/flutter/pull/94951/commits/7f47e1d09f8f06420738b35eca7fbea15e27330e

HidenoriMatsubayashi commented 1 year ago

Thank you for creating an issue!