From a5538bb8994bbbc62a3f816192908a4e67e33b87 Mon Sep 17 00:00:00 2001 From: David Marcin Date: Tue, 17 Aug 2021 23:49:11 -0700 Subject: [PATCH] Pass all tags to execution_requirements --- foreign_cc/private/framework.bzl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/foreign_cc/private/framework.bzl b/foreign_cc/private/framework.bzl index dfed420fc..e3135035a 100644 --- a/foreign_cc/private/framework.bzl +++ b/foreign_cc/private/framework.bzl @@ -429,9 +429,9 @@ def cc_external_rule_impl(ctx, attrs): rule_outputs = outputs.declared_outputs + [installdir_copy.file] cc_toolchain = find_cpp_toolchain(ctx) - execution_requirements = {"block-network": ""} - if "requires-network" in ctx.attr.tags: - execution_requirements = {"requires-network": ""} + execution_requirements = {tag: "" for tag in ctx.attr.tags} + if "requires-network" not in execution_requirements: + execution_requirements["block-network"] = "" # TODO: `additional_tools` is deprecated, remove. legacy_tools = ctx.files.additional_tools + ctx.files.tools_deps