jaxxstorm / action-install-gh-release

GitHub Action to install the Github Release binaries
Apache License 2.0
75 stars 32 forks source link

Handle 'EXDEV: cross-device link not permitted' #76

Closed elventear closed 10 months ago

elventear commented 10 months ago

The flow for blob binary downloading can fail if the runner is running in a context where the mount points for the hostedtoolcache is different than the workspace, since it's not possible to rename across different volumes.

This PR handles that error in particular and falls back to trying to copy the source the data and then removing it instead.

jaxxstorm commented 10 months ago

Thank you for the PR. Does this primarily affected self hosted runners?

elventear commented 10 months ago

@jaxxstorm I think it's a possibility to run into this if you run your Workflow job inside a container and do funky things with the volumes. But In my case it was a self hosted runner executing in k8s using ARC.

jaxxstorm commented 10 months ago

Thanks for the contribution!