From 67eed1ad636bdfb896bdae736d6aabbf06e67501 Mon Sep 17 00:00:00 2001 From: Googler Date: Mon, 31 Mar 2025 13:56:38 -0700 Subject: [PATCH] Replace legacy struct providers with modern ones Legacy struct providers have been deprecated by Bazel and Blaze. Replacing them with modern providers, will make it possible to simplify and remove legacy handling from Blaze. The change is a no-op. More information on: go/lsc-legacy-struct-providers PiperOrigin-RevId: 742389141 --- aspect/fast_build_info.bzl | 2 +- aspect/intellij_info_impl.bzl | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/aspect/fast_build_info.bzl b/aspect/fast_build_info.bzl index c764d67e5e1..221d8544225 100644 --- a/aspect/fast_build_info.bzl +++ b/aspect/fast_build_info.bzl @@ -115,7 +115,7 @@ def _fast_build_info_impl(target, ctx): output_groups = depset(output_files, transitive = dep_outputs) - return struct(output_groups = {"ide-fast-build": output_groups}) + return OutputGroupInfo(**{"ide-fast-build": output_groups}) def _get_all_dep_outputs(dep_targets): """Get the ide-fast-build output files for all dependencies""" diff --git a/aspect/intellij_info_impl.bzl b/aspect/intellij_info_impl.bzl index 536bc00bc90..f200770d6b0 100644 --- a/aspect/intellij_info_impl.bzl +++ b/aspect/intellij_info_impl.bzl @@ -1058,10 +1058,10 @@ def intellij_info_aspect_impl(target, ctx, semantics): tags = ctx.rule.attr.tags if "no-ide" in tags: - return struct() + return [] if _is_analysis_test(target): - return struct() + return [] rule_attrs = ctx.rule.attr