Skip to content

Commit

Permalink
Move SHA to be an external stdlib (JuliaLang#41370)
Browse files Browse the repository at this point in the history
For the past few years, we have had `SHA` as a vendored copy, however
improvements have been made both to the vendored copy here in base as
well as to the registered copy living within `JuliaCrypto`.  This
eliminates the vendored copy and sets `SHA` up as an external stdlib
just like `Pkg`, `Tar`, and all of their friends, as well as merges the
improvements made to both into the external repository.
  • Loading branch information
staticfloat committed Sep 14, 2021
1 parent 5fb27b2 commit 2f47dae
Show file tree
Hide file tree
Showing 19 changed files with 9 additions and 1,498 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
db2a92db568240cfe668744e91cdc649
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
014f1dd31528b5c0618f5d2373f855d56e3b30f7b09cb1d680137e6254be48e9384a1950d066d59e599a86743922ab2c24d812b2faf294c62d6cb80bbe9fd706
2 changes: 2 additions & 0 deletions stdlib/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,7 @@
/NetworkOptions
/SuiteSparse-*
/SuiteSparse
/SHA-*
/SHA
/*_jll/StdlibArtifacts.toml
/*/Manifest.toml
4 changes: 3 additions & 1 deletion stdlib/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ STDLIBS = Artifacts Base64 CRC32c Dates DelimitedFiles Distributed FileWatching
SharedArrays Sockets SparseArrays SuiteSparse Test TOML Unicode UUIDs \
$(JLL_NAMES)

STDLIBS_EXT = Pkg Statistics LibCURL Downloads ArgTools Tar NetworkOptions SuiteSparse
STDLIBS_EXT = Pkg Statistics LibCURL Downloads ArgTools Tar NetworkOptions SuiteSparse SHA
PKG_GIT_URL := git:https://github.com/JuliaLang/Pkg.jl.git
PKG_TAR_URL = https://api.github.com/repos/JuliaLang/Pkg.jl/tarball/$1
STATISTICS_GIT_URL := git:https://github.com/JuliaLang/Statistics.jl.git
Expand All @@ -61,6 +61,8 @@ NETWORKOPTIONS_GIT_URL := git:https://github.com/JuliaLang/NetworkOptions.jl.git
NETWORKOPTIONS_TAR_URL = https://api.github.com/repos/JuliaLang/NetworkOptions.jl/tarball/$1
SUITESPARSE_GIT_URL := git:https://github.com/JuliaLang/SuiteSparse.jl.git
SUITESPARSE_TAR_URL = https://api.github.com/repos/JuliaLang/SuiteSparse.jl/tarball/$1
SHA_GIT_URL := git:https://github.com/JuliaCrypto/SHA.jl.git
SHA_TAR_URL = https://api.github.com/repos/JuliaCrypto/SHA.jl/tarball/$1

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

Expand Down
2 changes: 2 additions & 0 deletions stdlib/SHA.version
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
SHA_BRANCH = master
SHA_SHA1 = 7ac490dfa78449ae81354cff9471a317f211a8f6
58 changes: 0 additions & 58 deletions stdlib/SHA/LICENSE.md

This file was deleted.

8 changes: 0 additions & 8 deletions stdlib/SHA/Project.toml

This file was deleted.

75 changes: 0 additions & 75 deletions stdlib/SHA/docs/src/index.md

This file was deleted.

137 changes: 0 additions & 137 deletions stdlib/SHA/src/SHA.jl

This file was deleted.

42 changes: 0 additions & 42 deletions stdlib/SHA/src/base_functions.jl

This file was deleted.

Loading

0 comments on commit 2f47dae

Please sign in to comment.