bazel-contrib / rules-template

A template for creating a new Bazel ruleset
Apache License 2.0
75 stars 20 forks source link

Use `sha256` instead of `integrity` #79

Closed thii closed 7 months ago

thii commented 1 year ago

sha256 is more widely used, and Bazel docs doesn't mention if the repository cache supports integrity.

alexeagle commented 7 months ago

I'm quite sure integrity is used as the repository_cache key. I think sha256 is getting replaced over time by other algos so I think it's slightly better to leave it as-is. Also, in many cases a project does provide integrity hashes along with their downloads, so you have to use what they give you.