Skip to content

Error when installing clang tool on Linux (from PyPI) #330

@2bndy5

Description

@2bndy5

Error: {clang_installer::version:141}: Failed to download clang-tidy ^17 from PyPi: HTTP request error: Error persisting temporary file: failed to persist temporary file: Invalid cross-device link (os error 18)

In a google search, AI explains this as:

This error occurs because the application is trying to use an atomic rename operation to move a temporary file to its final destination, but the temporary folder and target folder live on different filesystems or storage mounts. Operating systems do not allow atomic renames across different storage devices or partitions, resulting in EXDEV (OS error 18).

This explanation tracks because GitHub Action runners tend to use different drives between the docker container and the workspace directory. We saw related problems like this back when cpp-linter-action was a docker-based action...

I think the solution is to download the file directly to the cache destination and rename it once download is complete.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions