repro bazel#16528
diff --git a/.bazelversion b/.bazelversion index 4453eff..4a12ac8 100644 --- a/.bazelversion +++ b/.bazelversion
@@ -1,4 +1,4 @@ -5.3.2 +rolling # The first line of this file is used by Bazelisk and Bazel to be sure # the right version of Bazel is used to build and test this repo. # This also defines which version is used on CI.
diff --git a/lib/private/utils.bzl b/lib/private/utils.bzl index 25d150e..eb2dea5 100644 --- a/lib/private/utils.bzl +++ b/lib/private/utils.bzl
@@ -84,8 +84,8 @@ # Seems like a bug in Bazel that the workspace_root for a label like # @@//js/private/node-patches:fs.js is "external" # See https://github.com/bazelbuild/bazel/issues/16528 - if str(param).startswith("@@//"): - return False + #if str(param).startswith("@@//"): + # return False return len(_to_label(param).workspace_root) > 0 # Path to the root of the workspace
diff --git a/lib/tests/utils_test.bzl b/lib/tests/utils_test.bzl index b7b5cd8..3f1002b 100644 --- a/lib/tests/utils_test.bzl +++ b/lib/tests/utils_test.bzl
@@ -36,7 +36,7 @@ asserts.false(env, utils.is_external_label("@//some/label")) # TODO(Bazel 6.0): enable this test when the @@ syntax is available - # asserts.false(env, utils.is_external_label("@@//some/label")) + asserts.false(env, utils.is_external_label(Label("@@//some/label"))) asserts.false(env, utils.is_external_label(Label("@aspect_bazel_lib//some/label"))) asserts.false(env, ctx.attr.internal_with_workspace_as_string)