facebook / facebook/buck2

Making sha256 or sha1 sum for http_archive optional

Open
#576 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
4.4k
Forks
394
PR merge metrics
No merged PRs in 30d

Description

I have been trying to create a tool like reindeer but for go modules. But I've hit a barrier where creating the http_archive rules for the required modules requires the sha sum of the file it is downloading. However there is no easy way to get the hash of the files without downloading them. go.sum files or go sum db has some hashes but they are not the hash of the zip file rather a directory hash function using the actual contents of the file. One way to do this would be to download everything with the tool calculate the hashes and then generate the rules for it. Is there a way to circumvent this ?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.