Skip to content

Commit

Permalink
Add download_has_headers_param feature (#30)
Browse files Browse the repository at this point in the history
Coming in 7.1.0, rctx.download will accept a headers parameter allowing
arbitrary headers to be passed to the downloaders.
Link to issue: bazelbuild/bazel#17829

cc: @fmeum
  • Loading branch information
mortenmj committed Dec 18, 2023
1 parent 52bf4a1 commit 6139656
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion features.bzl
Expand Up @@ -24,7 +24,9 @@ _external_deps = struct(
# https://github.com/bazelbuild/bazel/commit/970b9dda7cd215a29d73a53871500bc4e2dc6142
module_extension_has_os_arch_dependent = ge("6.4.0"),
# Whether repository_ctx#download has the block parameter, allowing parallel downloads (#19674)
download_has_block_param = ge("7.1.0")
download_has_block_param = ge("7.1.0"),
# Whether repository_ctx#download has the headers parameter, allowing arbitrary headers (#17829)
download_has_headers_param = ge("7.1.0")
)

_flags = struct(
Expand Down

0 comments on commit 6139656

Please sign in to comment.