Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors related to /tmp folder inside Docker container. Why use of Tempfile? #19

Open
bitcrumb opened this issue Mar 7, 2023 · 1 comment

Comments

@bitcrumb
Copy link

bitcrumb commented Mar 7, 2023

I am being faced with the following error when running a Fastlane lane in a Docker container (based on debian:bullseye-slim):

/usr/lib/ruby/2.7.0/fileutils.rb:548:in `rename': Invalid cross-device link @ rb_file_s_rename - (/tmp/fastlaneIncrementVersionName20230307-13093-1g2hon7, ./android/app/build.gradle) (Errno::EXDEV)

/usr/lib/ruby/2.7.0/fileutils.rb:1424:in `utime': \e[31m[!] Operation not permitted @ apply2files - ./android/app/build.gradle\e[0m (Errno::EPERM)

Any specific reason this plugin uses a temporary file in the /tmp folder for making changes to the build.gradle instead of replacing directly in the original build.gradle file?

This seems like an unnecessary detour?

@bitcrumb
Copy link
Author

I think the issue is that you can't move files over different mounts, so it would probably work if the file was copied & removed instead (or no Tempfile was used at all).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant