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

fix: instead of moving mill cp and then remove #422

Merged
merged 1 commit into from
Dec 2, 2022

Conversation

ckipp01
Copy link
Contributor

@ckipp01 ckipp01 commented Dec 2, 2022

It looks like there are situations when dealing with mounted drives
you get the following error:

Error: EXDEV: cross-device link not permitted, rename '/runner/_work/_temp/9b722d14-6935-45f9-ab1a-526911088cbe' -> '/home/runner/bin/mill'

From googling around it looks like we can avoid this by instead
moving the file first and then removing it.

For reference

Fixes: #421

It looks like there are situations when dealing with mounted drives
you get the following error:

```
Error: EXDEV: cross-device link not permitted, rename '/runner/_work/_temp/9b722d14-6935-45f9-ab1a-526911088cbe' -> '/home/runner/bin/mill'
```

From googling around it looks like we can avoid this by instead
moving the file first and then removing it.

For reference

- https://stackoverflow.com/questions/44146393/error-exdev-cross-device-link-not-permitted-rename-nodejs
- shelljs/shelljs#191

Fixes: scala-steward-org#421
@ckipp01
Copy link
Contributor Author

ckipp01 commented Dec 2, 2022

@alejandrohdezma is there a chance we could get this on a branch and then if possible @ybasket would you be able to test it?

@ybasket
Copy link
Contributor

ybasket commented Dec 2, 2022

@ckipp01 Thank you for looking into this!

I'll only be able to test this next week, but do not necessarily need a separate branch as I can pull these changes into my fork and test from there. Will report back.

Copy link
Member

@alejandrohdezma alejandrohdezma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great catch! Yeah, this should be the way to go, it's the same approach we follow for installing coursier in #30. Sorry I didn't remember when I reviewed the previosu PR 😿

@alejandrohdezma alejandrohdezma merged commit 652b250 into scala-steward-org:master Dec 2, 2022
@alejandrohdezma
Copy link
Member

This change has been released as version v2.32.0 (as well as updating the v2 tag).

@ckipp01 ckipp01 deleted the cp branch December 4, 2022 10:31
@ybasket
Copy link
Contributor

ybasket commented Dec 5, 2022

I can confirm it fixed the issue reported in #421, thank you both for the quick handling of this :)

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

Successfully merging this pull request may close these issues.

Mill installation fails workflow
3 participants