subosito / flutter-action

Flutter environment for use in GitHub Actions. It works on Linux, Windows, and macOS.
MIT License
2.23k stars 199 forks source link

Invalid argument on Mac worker #226

Closed darhaywa closed 11 months ago

darhaywa commented 1 year ago

When setup.sh runs the following error occurs

mv: rename /Users/<username>/Applications/actions-runner/_work/_temp/flutter to /Users/<username>/Applications/actions-runner/_work/_temp/flutter/stable-3.10.0-x64: Invalid argument

It is not possible to move/rename a directory to a child of the directory being moved on a Mac running the following causes the same problem

mkdir temp
mv temp temp/test

It looks like this line should not be using RUNNER_TEMP

Configuration in action

name: Prepare Flutter environment

description: Prepare Flutter environment

runs:
  using: "composite"
  steps:
    - uses: subosito/flutter-action@v2