I get the following error while trying to run a build using the flex-sdk-provider:
Error: EXDEV: cross-device link not permitted, rename '/tmp/flex-sdk121813-380409-1hzvmao.mitt' -> '/home/<user-name>/.flex-sdk/4.15.0'
This is due to the fact that fs.rename is used to copy the temp folder over to the ~/.flex-sdk folder, which uses glibc's rename function, which throws the EXDEV error because it does not allow renaming files across mount points (which is the case for me, since my root and home folders are on separate partitions).
Suggested solution: Don't use fs.rename, but copy the files over and delete the temp folder.