From 777af2b05f9358de8ba7eadb5b15fcd015188891 Mon Sep 17 00:00:00 2001 From: Keith Smiley Date: Wed, 11 Jun 2025 15:15:02 -0700 Subject: [PATCH] Add missing use of DefaultInfo (#471) Required for compatibility with https://github.com/bazelbuild/bazel/issues/20183 --- bazel_integration_test/private/bazel_integration_test.bzl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bazel_integration_test/private/bazel_integration_test.bzl b/bazel_integration_test/private/bazel_integration_test.bzl index c83c7882..d8d7fe26 100644 --- a/bazel_integration_test/private/bazel_integration_test.bzl +++ b/bazel_integration_test/private/bazel_integration_test.bzl @@ -20,7 +20,7 @@ def _select_workspace_file_impl(ctx): workspace_bazel = paths.join(ctx.attr.workspace_path, "WORKSPACE.bazel") workspace_module = paths.join(ctx.attr.workspace_path, "MODULE.bazel") workspace_repo = paths.join(ctx.attr.workspace_path, "REPO.bazel") - for file in ctx.attr.srcs.files.to_list(): + for file in ctx.attr.srcs[DefaultInfo].files.to_list(): if file.path.endswith(workspace_file) or file.path.endswith(workspace_bazel) or file.path.endswith(workspace_module) or file.path.endswith(workspace_repo): return [DefaultInfo(files = depset([file]))] fail("Can't find WORKSPACE, WORKSPACE.bazel, MODULE.bazel, nor REPO.bazel in %s" % ctx.attr.workspace_path)