Skip to content

Commit 67eed1a

Browse files
Googlercopybara-github
authored andcommitted
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
1 parent 0a5c70b commit 67eed1a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

aspect/fast_build_info.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def _fast_build_info_impl(target, ctx):
115115

116116
output_groups = depset(output_files, transitive = dep_outputs)
117117

118-
return struct(output_groups = {"ide-fast-build": output_groups})
118+
return OutputGroupInfo(**{"ide-fast-build": output_groups})
119119

120120
def _get_all_dep_outputs(dep_targets):
121121
"""Get the ide-fast-build output files for all dependencies"""

aspect/intellij_info_impl.bzl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1058,10 +1058,10 @@ def intellij_info_aspect_impl(target, ctx, semantics):
10581058

10591059
tags = ctx.rule.attr.tags
10601060
if "no-ide" in tags:
1061-
return struct()
1061+
return []
10621062

10631063
if _is_analysis_test(target):
1064-
return struct()
1064+
return []
10651065

10661066
rule_attrs = ctx.rule.attr
10671067

0 commit comments

Comments
 (0)