From 59029f564aaa6ebf155ee04571fe3b35e57075cd Mon Sep 17 00:00:00 2001 From: Fabian Meumertzheim Date: Fri, 16 Dec 2022 18:53:50 +0100 Subject: [PATCH] Replace `cfg = "host"` with `cfg = "exec"` (#3404) Become compatible with `--incompatible_disable_starlark_host_transitions`, which will be flipped in Bazel 7. https://github.com/bazelbuild/bazel/issues/17032 --- extras/bindata.bzl | 2 +- extras/embed_data.bzl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/extras/bindata.bzl b/extras/bindata.bzl index 06cd054c6f..40c119f9a4 100644 --- a/extras/bindata.bzl +++ b/extras/bindata.bzl @@ -76,7 +76,7 @@ bindata = rule( "extra_args": attr.string_list(), "_bindata": attr.label( executable = True, - cfg = "host", + cfg = "exec", default = "@com_github_kevinburke_go_bindata//go-bindata:go-bindata", ), "_go_context_data": attr.label( diff --git a/extras/embed_data.bzl b/extras/embed_data.bzl index 212c4d50cc..fb3519e23a 100644 --- a/extras/embed_data.bzl +++ b/extras/embed_data.bzl @@ -135,7 +135,7 @@ go_embed_data = rule( "_embed": attr.label( default = "//go/tools/builders:embed", executable = True, - cfg = "host", + cfg = "exec", ), "_go_context_data": attr.label( default = "//:go_context_data",