...

Text file src/github.com/bazelbuild/bazel-gazelle/third_party/patches/rules_go.patch

Documentation: github.com/bazelbuild/bazel-gazelle/third_party/patches

     1diff --git a/go/private/BUILD.bazel b/go/private/BUILD.bazel
     2index 51df4ed6e..0833b2c10 100644
     3--- a/go/private/BUILD.bazel
     4+++ b/go/private/BUILD.bazel
     5@@ -64,7 +64,7 @@ bzl_library(
     6         "@bazel_skylib//rules:common_settings",
     7         "@bazel_tools//tools/build_defs/cc:action_names.bzl",
     8         "@bazel_tools//tools/cpp:toolchain_utils.bzl",
     9-        "@io_bazel_rules_go_bazel_features//:features.bzl",
    10+        "@io_bazel_rules_go_bazel_features//:features",
    11         "@io_bazel_rules_nogo//:scope.bzl",
    12     ],
    13 )
    14diff --git a/go/private/polyfill_bazel_features.bzl b/go/private/polyfill_bazel_features.bzl
    15index 9d3c9203a..5481b6b0c 100644
    16--- a/go/private/polyfill_bazel_features.bzl
    17+++ b/go/private/polyfill_bazel_features.bzl
    18@@ -22,7 +22,14 @@ def _polyfill_bazel_features_impl(rctx):
    19
    20     find_cpp_toolchain_has_mandatory_param = major_version_int > 6 or (major_version_int == 6 and minor_version_int >= 1)
    21
    22-    rctx.file("BUILD.bazel", """exports_files(["features.bzl"])
    23+    rctx.file("BUILD.bazel", """
    24+load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
    25+bzl_library(
    26+    name = "features",
    27+    srcs = ["features.bzl"],
    28+    visibility = ["//visibility:public"],
    29+)
    30+exports_files(["features.bzl"])
    31 """)
    32     rctx.file("features.bzl", _POLYFILL_BAZEL_FEATURES.format(
    33         find_cpp_toolchain_has_mandatory_param = repr(find_cpp_toolchain_has_mandatory_param),

View as plain text