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

Use FileUtils.mkdir_p for ujs log directory #48031

Merged
merged 1 commit into from
Apr 23, 2023

Conversation

zzak
Copy link
Member

@zzak zzak commented Apr 23, 2023

Noticed this when debugging the ujs tests for buildkite locally.

This change ensures that this task can be rerun.

For example:

$ mkdir log && ruby -e 'Dir.mkdir("log")'
-e:1:in `mkdir': File exists @ dir_s_mkdir - log (Errno::EEXIST)
        from -e:1:in `<main>'

@rails-bot rails-bot bot added the actionview label Apr 23, 2023
@guilleiguaran guilleiguaran merged commit 21d0ef0 into rails:main Apr 23, 2023
8 checks passed
@zzak zzak deleted the av-ujs-rake-mkdir-log branch April 24, 2023 00:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants