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

Unable to remove target: Directory not empty #30

Open
mjrj97 opened this issue Nov 12, 2024 · 0 comments
Open

Unable to remove target: Directory not empty #30

mjrj97 opened this issue Nov 12, 2024 · 0 comments

Comments

@mjrj97
Copy link

mjrj97 commented Nov 12, 2024

I'm using this on self-hosted github actions. I have two workflows running at the same time. The first one is able to save to the path (base), but when the second is trying to save the cache it gives the following error:

/usr/bin/mv: inter-device move failed: './node_modules' to '/home/runner/.github-cache/[hashed-cache-value]/node_modules'; unable to remove target: Directory not empty

As I see it, it is because the first job has already created the cache, so the second one fails because the cache/directory already exists. Would it make sense to ignore this kind of error, since this key/folder path should be unique? Or don't do the mv command if the directory already exists? Or add a with: parameter flag to ignore?

Thank you for your efforts with this action, it works quite well :)

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

No branches or pull requests

1 participant