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 tempname() instead of custom file path in test/pkg.jl #8942

Merged
merged 1 commit into from
Nov 10, 2014

Conversation

nalimilan
Copy link
Member

Fixes calling Base.runtests("pkg") when Julia is installed in a
prefix where typical user does not have write access.

Please just confirm there wasn't a good reason not to use tempname. BTW, I can also update the docs for that function to say that it "Generate a unique temporary file or directory name", not just a "temporary filename". Or even better, a "temporary file or directory path". Right?

Fixes calling Base.runtests("pkg") when Julia is installed in a
prefix where typical user does not have write access.
nolta added a commit that referenced this pull request Nov 10, 2014
Use tempname() instead of custom file path in test/pkg.jl
@nolta nolta merged commit 8bce4df into master Nov 10, 2014
@nolta nolta deleted the nalimilan/tempname branch November 10, 2014 20:55
@ViralBShah
Copy link
Member

Cc: @JuliaBackports

@tkelman
Copy link
Contributor

tkelman commented Nov 19, 2014

backported in 84f6a45

@tkelman
Copy link
Contributor

tkelman commented Nov 22, 2014

I think I'm going to have to revert this on both branches, will test locally first. Since tempname() creates a file on Windows (#9053) it causes Pkg.init() to fail, when a file exists in a location that it's trying to create a directory.

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.

4 participants