From 6139656de5ec1bd82ef07cd0f3e5f04f52554d2d Mon Sep 17 00:00:00 2001 From: Morten Mjelva Date: Mon, 18 Dec 2023 19:43:36 +0100 Subject: [PATCH] Add download_has_headers_param feature (#30) Coming in 7.1.0, rctx.download will accept a headers parameter allowing arbitrary headers to be passed to the downloaders. Link to issue: https://github.com/bazelbuild/bazel/issues/17829 cc: @fmeum --- features.bzl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/features.bzl b/features.bzl index dffed76..b314d17 100644 --- a/features.bzl +++ b/features.bzl @@ -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(