Skip to content

when using a build or intermediate container the install of atmos fails. Error: Error: EXDEV: cross-device link not permitted, rename #98

Open
@dsidman-aeg

Description

@dsidman-aeg

Describe the Bug

when using an intermediate or build container Atmos will not install and you get error:
Error: Error: EXDEV: cross-device link not permitted, rename '/__w/_temp/06181220-7e5e-4ef4-90c1-fc9f44907020' -> '/__w/_actions/cloudposse/github-action-setup-atmos/atmos/atmos'

Expected Behavior

Build containers or intermediate containers or side car containers are quite common, Atmos should install with this configuration.

Steps to Reproduce

Run this Action: Steps to reproduce the behavior:
name: install-atmos

on:
workflow_dispatch: # Allow manual triggering of the workflow

jobs:
hello:
runs-on: {private runner name}
steps:
- name: whoami
id: tellmewhere
run: |
echo "Hello, from private runner"
hostname

set-atmos-env:
runs-on: ubuntu-latest
container:
image: {the link to your build or side car container registry and image}
outputs:
atmos_version: ${{ steps.install-atmos.outputs.atmos_version }}
atmos_cli_config_path: ${{ steps.install-atmos.outputs.atmos_cli_config_path }}
atmos_base_path: ${{ steps.install-atmos.outputs.atmos_base_path }}
steps:
- name: whoami
id: tellmeuser
run: |
whoami
hostname
echo "hello from build container"
cd ~
pwd
- name: Install Atmos
id: install-atmos
uses: cloudposse/github-action-setup-atmos@v2
with:
atmos-version: 1.156.0
install-wrapper: false

Possible fix:

The error EXDEV: cross-device link not permitted typically occurs when a file is being moved across different file systems or devices, which is not allowed by the rename operation in some environments. To fix this issue, you can modify the GitHub Actions workflow to use a different method for installing Atmos that doesn't rely on cross-device linking...or change the rename process.

Environment (please complete the following information):

ubuntu 20.x

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug🐛 An issue with the system

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions