subosito / flutter-action

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

Filename too long (Windows) #243

Closed Tienisto closed 10 months ago

Tienisto commented 10 months ago

Apparently, the file name gets too long on some packages. Is there any way to fix this?

Failed Action: https://github.com/localsend/localsend/actions/runs/5999185527

 Resolving dependencies...
Git error. Command: `git clone C:\hostedtoolcache\windows\flutter\stable-3.10.6-x64/.pub-cache\git\cache\plus_plugins-9e3beb502cd54d884866c9f77447b1eb635e564b C:\hostedtoolcache\windows\flutter\stable-3.10.6-x64/.pub-cache\git\plus_plugins-ab6e6b52ff456fa4b6f8c5a8e2cf7df5a1dd1f4e`
stdout: 
stderr: Cloning into 'C:\hostedtoolcache\windows\flutter\stable-3.10.6-x64/.pub-cache\git\plus_plugins-ab6e6b52ff456fa4b6f8c5a8e2cf7df5a1dd1f4e'...
done.
error: unable to create file packages/android_alarm_manager_plus/example/android/app/src/androidTest/java/io/flutter/plugins/androidalarmmanager/BackgroundExecutionTest.java: Filename too long
kuhnroyal commented 10 months ago

Hello @Tienisto, you can try the steps from https://github.com/actions/runner-images/issues/6348#issuecomment-1266055486 - that worked for me.

Tienisto commented 10 months ago

Thanks @kuhnroyal ! It seems to work now.