From 3e35476a411b6da0510e2f230cda5e1ddcb97d28 Mon Sep 17 00:00:00 2001 From: Ivo List Date: Thu, 29 Feb 2024 21:34:10 +0100 Subject: [PATCH] Replace legacy struct providers with modern ones Legacy struct providers have been deprecated by Bazel. --- closure/private/file_test.bzl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/closure/private/file_test.bzl b/closure/private/file_test.bzl index 7e2f88d864..ccad0335e1 100644 --- a/closure/private/file_test.bzl +++ b/closure/private/file_test.bzl @@ -51,7 +51,7 @@ def _impl(ctx): content = "diff -u %s %s" % (expected.short_path, actual.short_path), is_executable = True, ) - return struct(runfiles = ctx.runfiles([exe, expected, actual])) + return DefaultInfo(runfiles = ctx.runfiles([exe, expected, actual])) if matches != -1: script = "[ %s == $(grep -c %s %s) ]" % ( matches, @@ -67,7 +67,7 @@ def _impl(ctx): content = script, is_executable = True, ) - return struct(runfiles = ctx.runfiles([exe, file_])) + return DefaultInfo(runfiles = ctx.runfiles([exe, file_])) _file_test = rule( attrs = {