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

Fix download deprecation for Julia 1.6 #203

Closed
wants to merge 2 commits into from

Conversation

mjram0s
Copy link

@mjram0s mjram0s commented May 12, 2021

Closes #202

Similar to workaround in JuliaTime/TimeZones.jl#339

@mjram0s mjram0s changed the title Fix download deprecation for Julia 1.6 Fix download deprecation for Julia 1.6 May 12, 2021
# Use Downloads.jl once Conda.jl drops support for Julia versions < 1.3
download(args...) = Base.invokelatest(Base.Downloads().download, args...)
else
using Base: download
Copy link
Member

Choose a reason for hiding this comment

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

This doesn't seem needed — download is exported in earlier Julia versions, no?

Copy link
Author

Choose a reason for hiding this comment

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

It's not necessary but I'd prefer to be explicit about using Base.download for versions < 1.6

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.

ERROR: LoadError: Base.download is deprecated; use Downloads.download instead
2 participants