Skip to content

Commit

Permalink
add Downloads stdlib
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanKarpinski committed Sep 10, 2020
1 parent e4a7c80 commit 1957fed
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 3 deletions.
1 change: 1 addition & 0 deletions base/sysimg.jl
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ let
:MozillaCACerts_jll,
:LibCURL_jll,
:LibCURL,
:Downloads,
]

maxlen = reduce(max, textwidth.(string.(stdlibs)); init=0)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
32884ff5df53d2a1afc81692ad7199b9
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
11fc560b82c64c98567eb3a4f429128e0497554e98e693728d53d7d0826948f06ff4289f6ad79e518eeccafe641b07a3dd8ff1ff1fddcce612dc285c61739737
2 changes: 2 additions & 0 deletions stdlib/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@
/Statistics
/LibCURL-*
/LibCURL
/Downloads-*
/Downloads
2 changes: 2 additions & 0 deletions stdlib/Downloads.version
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
DOWNLOADS_BRANCH = master
DOWNLOADS_SHA1 = fa3ca24820bf2eef669dedd2e112bd326820ac35
4 changes: 3 additions & 1 deletion stdlib/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,15 @@ STDLIBS = Base64 CRC32c Dates DelimitedFiles Distributed FileWatching \
SharedArrays Sockets SparseArrays SuiteSparse Test TOML Unicode UUIDs \
MozillaCACerts_jll LibCURL_jll

STDLIBS_EXT = Pkg Statistics LibCURL
STDLIBS_EXT = Pkg Statistics LibCURL Downloads
PKG_GIT_URL := git://github.com/JuliaLang/Pkg.jl.git
PKG_TAR_URL = https://api.github.com/repos/JuliaLang/Pkg.jl/tarball/$1
STATISTICS_GIT_URL := git://github.com/JuliaLang/Statistics.jl.git
STATISTICS_TAR_URL = https://api.github.com/repos/JuliaLang/Statistics.jl/tarball/$1
LIBCURL_GIT_URL := git://github.com/JuliaWeb/LibCURL.jl.git
LIBCURL_TAR_URL = https://api.github.com/repos/JuliaWeb/LibCURL.jl/tarball/$1
DOWNLOADS_GIT_URL := git://github.com/JuliaLang/Downloads.jl.git
DOWNLOADS_TAR_URL = https://api.github.com/repos/JuliaLang/Downloads.jl/tarball/$1

$(foreach module, $(STDLIBS_EXT), $(eval $(call stdlib-external,$(module),$(shell echo $(module) | tr a-z A-Z))))

Expand Down
2 changes: 1 addition & 1 deletion test/choosetests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ function choosetests(choices = [])
filter!(x -> (x != "Profile"), tests)
end

net_required_for = ["Sockets", "LibGit2", "LibCURL"]
net_required_for = ["Sockets", "LibGit2", "LibCURL", "Downloads"]
net_on = true
try
ipa = getipaddr()
Expand Down
2 changes: 1 addition & 1 deletion test/precompile.jl
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ try
:Future, :Libdl, :LinearAlgebra, :Logging, :Mmap, :Printf,
:Profile, :Random, :Serialization, :SharedArrays, :SparseArrays, :SuiteSparse, :Test,
:Unicode, :REPL, :InteractiveUtils, :Pkg, :LibGit2, :SHA, :UUIDs, :Sockets,
:Statistics, :TOML, :MozillaCACerts_jll, :LibCURL_jll, :LibCURL,]),
:Statistics, :TOML, :MozillaCACerts_jll, :LibCURL_jll, :LibCURL, :Downloads,]),
# Plus precompilation module generated at build time
let id = Base.PkgId("__PackagePrecompilationStatementModule")
Dict(id => Base.module_build_id(Base.root_module(id)))
Expand Down

0 comments on commit 1957fed

Please sign in to comment.