Skip to content

Future of Base.download #27043

Closed
Closed
@simonbyrne

Description

We currently export a download function from Base for downloading files. It has some issues:

As a result, several packages implement their own functionality, notably BinDeps.jl, BinaryProvider.jl, and Pkg3.jl (pending JuliaLang/Pkg.jl#280). In fact, it doesn't appear to be currently used anywhere in Base or stdlib (it is mentioned in a couple of comments in the REPL code).

Some options:

  • Move it to a stdlib package to make it easier to update, add features etc (at least it will once we have versioned stdlib packages).
  • Add the functionality to HTTP.jl, and move that to stdlib. This would have the advantage of getting rid of the mish-mash of shell code we currently use (suggested in Add Sys.which(), use that to find curl in download() #26559 (comment))
  • Get rid of it altogether.

cc: @staticfloat @tkelman @samoconnor

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    ioInvolving the I/O subsystem: libuv, read, write, etc.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions