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

Ignore missing files when cleaning old assets #2384

Closed

Conversation

alexdunae
Copy link

@alexdunae alexdunae commented Dec 3, 2019

We ran into this issue when using a staging server and Capistrano. The staging server would be pushed to with multiple different branches throughout the day, resulting in various stale files.

Since we're trying to clean up old files, swallowing the 'file not found' errors seems to make sense.

(I had to extract versions_of_file to make this more testable. Hope that's ok.)

Fixes #2372
Complementary to PR #2382

@le0pard
Copy link

le0pard commented Dec 4, 2019

#2385 - possible solution

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.

New webpacker:clean task raises 'No such file or directory' error
2 participants