Skip to content

Commit

Permalink
Always return a provider from a rule instead of a struct
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.
  • Loading branch information
mering committed Dec 15, 2024
1 parent 95cf35a commit bbf933b
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 bbf933b

Please sign in to comment.