Skip to content

Commit 690d021

Browse files
authored
Remove tarball_git_tree_sha1 and tarball_git_tree_sha256
1 parent 921a314 commit 690d021

1 file changed

Lines changed: 2 additions & 10 deletions

File tree

src/VersionsJSONUtil.jl

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -133,14 +133,6 @@ function tarball_git_tree_hash(; tarball_path::AbstractString, algorithm::Abstra
133133
return open(io -> Tar.tree_hash(io; algorithm), `$(exe7z()) x $tarball_path -so`)
134134
end
135135

136-
function tarball_git_tree_sha1(tarball_path::AbstractString)
137-
return tarball_git_tree_hash(; tarball_path, algorithm = "git-sha1")
138-
end
139-
140-
function tarball_git_tree_sha256(tarball_path::AbstractString)
141-
return tarball_git_tree_hash(; tarball_path, algorithm = "git-sha256")
142-
end
143-
144136
# Get list of tags from the Julia repo
145137
function get_tags()
146138
@info("Probing for tag list...")
@@ -208,12 +200,12 @@ function main(out_path)
208200
tarball_git_tree_hashes = Dict{String, String}()
209201
tree_hash_path_sha1 = hit_file_cache("$(filename).git-tree-sha1") do tree_hash_path
210202
open(tree_hash_path, "w") do hash_io
211-
write(hash_io, tarball_git_tree_sha1(filepath))
203+
write(hash_io, tarball_git_tree_hash(; tarball_path=filepath, algorithm="git-sha1"))
212204
end
213205
end
214206
tree_hash_path_sha256 = hit_file_cache("$(filename).git-tree-sha256") do tree_hash_path
215207
open(tree_hash_path, "w") do hash_io
216-
write(hash_io, tarball_git_tree_sha256(filepath))
208+
write(hash_io, tarball_git_tree_hash(; tarball_path=filepath, algorithm="git-sha256"))
217209
end
218210
end
219211
tarball_git_tree_hashes["git-tree-sha1"] = String(read(tree_hash_path_sha1))

0 commit comments

Comments
 (0)