Skip to content

Commit

Permalink
Merge pull request bazelbuild#11 from meteorcloudy/integrity
Browse files Browse the repository at this point in the history
http_archive: Don't try to update sha256 attribute when integrity is present
  • Loading branch information
Wyverald authored May 11, 2021
2 parents d398e3c + 9695de8 commit 8e76ade
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/build_defs/repo/http.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def _http_archive_impl(ctx):
workspace_and_buildfile(ctx)
patch(ctx, auth = auth)

return update_attrs(ctx.attr, _http_archive_attrs.keys(), {"sha256": download_info.sha256})
return update_attrs(ctx.attr, _http_archive_attrs.keys(), {} if ctx.attr.integrity else {"sha256": download_info.sha256})

_HTTP_FILE_BUILD = """
package(default_visibility = ["//visibility:public"])
Expand Down

0 comments on commit 8e76ade

Please sign in to comment.