Skip to content

Commit

Permalink
Return a provider from a rule instead of a struct (#1200)
Browse files Browse the repository at this point in the history
This is now longer allowed in Bazel 8 and was flipped via
`--incompatible_disallow_struct_provider_syntax`.

Once merged, please also backport to the v1.1.1-SNAPSHOTS.
  • Loading branch information
mering authored Dec 17, 2024
1 parent 95cf35a commit 2f3df6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bazel/protobuf.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def _protoc_gen_validate_impl(ctx, lang, protos, out_files, protoc_args, package
use_default_shell_env = True,
)

return struct(
return DefaultInfo(
files = depset(out_files),
)

Expand Down

0 comments on commit 2f3df6b

Please sign in to comment.