@@ -129,9 +129,9 @@ function is_stable(v::VersionNumber)
129129 return v. prerelease == () && v. build == ()
130130end
131131
132- function tarball_git_tree_hash (; tarball_path:: AbstractString , algorithm:: AbstractString )
133- return open (io -> Tar. tree_hash (io; algorithm), ` $(exe7z ()) x $tarball_path -so` )
134- end
132+ # function tarball_git_tree_hash(; tarball_path::AbstractString, algorithm::AbstractString)
133+ # return open(io -> Tar.tree_hash(io; algorithm), `$(exe7z()) x $tarball_path -so`)
134+ # end
135135
136136# Get list of tags from the Julia repo
137137function get_tags ()
@@ -196,23 +196,23 @@ function main(out_path)
196196 end
197197 tarball_hash = String (read (tarball_hash_path))
198198
199- if extension == " tar.gz" && ! (url in tarball_git_tree_hash_skiplist)
200- tarball_git_tree_hashes = Dict {String, String} ()
201- tree_hash_path_sha1 = hit_file_cache (" $(filename) .git-tree-sha1" ) do tree_hash_path
202- open (tree_hash_path, " w" ) do hash_io
203- write (hash_io, tarball_git_tree_hash (; tarball_path= filepath, algorithm= " git-sha1" ))
204- end
205- end
206- tree_hash_path_sha256 = hit_file_cache (" $(filename) .git-tree-sha256" ) do tree_hash_path
207- open (tree_hash_path, " w" ) do hash_io
208- write (hash_io, tarball_git_tree_hash (; tarball_path= filepath, algorithm= " git-sha256" ))
209- end
210- end
211- tarball_git_tree_hashes[" git-tree-sha1" ] = String (read (tree_hash_path_sha1))
212- tarball_git_tree_hashes[" git-tree-sha256" ] = String (read (tree_hash_path_sha256))
213- else
214- tarball_git_tree_hashes = nothing
215- end
199+ # if extension == "tar.gz" && !(url in tarball_git_tree_hash_skiplist)
200+ # tarball_git_tree_hashes = Dict{String, String}()
201+ # tree_hash_path_sha1 = hit_file_cache("$(filename).git-tree-sha1") do tree_hash_path
202+ # open(tree_hash_path, "w") do hash_io
203+ # write(hash_io, tarball_git_tree_hash(; tarball_path=filepath, algorithm="git-sha1"))
204+ # end
205+ # end
206+ # tree_hash_path_sha256 = hit_file_cache("$(filename).git-tree-sha256") do tree_hash_path
207+ # open(tree_hash_path, "w") do hash_io
208+ # write(hash_io, tarball_git_tree_hash(; tarball_path=filepath, algorithm="git-sha256"))
209+ # end
210+ # end
211+ # tarball_git_tree_hashes["git-tree-sha1"] = String(read(tree_hash_path_sha1))
212+ # tarball_git_tree_hashes["git-tree-sha256"] = String(read(tree_hash_path_sha256))
213+ # else
214+ # tarball_git_tree_hashes = nothing
215+ # end
216216
217217 # Initialize overall version key, if needed
218218 if ! haskey (meta, version)
@@ -252,9 +252,9 @@ function main(out_path)
252252 " extension" => extension,
253253 " url" => url,
254254 )
255- if tarball_git_tree_hashes != = nothing
256- merge! (file_dict, tarball_git_tree_hashes)
257- end
255+ # if tarball_git_tree_hashes !== nothing
256+ # merge!(file_dict, tarball_git_tree_hashes)
257+ # end
258258 # Add in `.asc` signature content, if applicable
259259 if asc_signature != = nothing
260260 file_dict[" asc" ] = asc_signature
0 commit comments