Skip to content

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

@bitcrumb

Description

@bitcrumb

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions