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

hack to avoid perm error when rm:ing temp dir on windows #26879

Closed
wants to merge 1 commit into from

Conversation

StefanKarpinski
Copy link
Member

@StefanKarpinski StefanKarpinski commented Apr 22, 2018

@@ -40,7 +40,10 @@ function temp_pkg_dir(fn::Function, tmp_dir=joinpath(tempdir(), randstring()),
end
fn()
finally
remove_tmp_dir && rm(tmp_dir, recursive=true)
if remove_tmp_dir
Sys.iswindows() && gc() # to make sure handles are closed on Windows
Copy link
Member

Choose a reason for hiding this comment

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

Should be GC.gc() now, which is why the AV build is failing here

@KristofferC
Copy link
Member

This rm is not the problem, #26883 should hopefully fix it. Otherwise I revert the merge.

@ararslan ararslan deleted the sk/windows-rmdir-workaround branch April 24, 2018 01:22
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.

3 participants