You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I got these errors when running linter with v1.46.0 buf
Executing tests from //:root_proto_lint
-----------------------------------------------------------------------------
Failed with code invalid_argument: validation error:
- file_descriptors[0].file_descriptor_proto: source_code_info must be present [source_code_info_present]
- file_descriptors[1].file_descriptor_proto: source_code_info must be present [source_code_info_present]
- file_descriptors[2].file_descriptor_proto: source_code_info must be present [source_code_info_present]
- file_descriptors[3].file_descriptor_proto: source_code_info must be present [source_code_info_present]
- file_descriptors[4].file_descriptor_proto: source_code_info must be present [source_code_info_present]
- file_descriptors[5].file_descriptor_proto: source_code_info must be present [source_code_info_present]
--buf-plugin_out: protoc-gen-buf-plugin: Plugin failed with status code 1.
Thank you for reporting, I found the change this started happening at (1.40.0). I'll investigate further and get back here, in the mean time you can use --experimental_proto_descriptor_sets_include_source_info flag to include source code info.
bazel run --experimental_proto_descriptor_sets_include_source_info //:root_proto_lint
You can also add it to .bazelrc:
common --experimental_proto_descriptor_sets_include_source_info
I got these errors when running linter with
v1.46.0
bufSteps to reproduce
rules_buf/examples/bzlmod/MODULE.bazel
Line 28 in ac66781
buf.toolchains(version = "v1.46.0")
bazel run //:root_proto_lint
The text was updated successfully, but these errors were encountered: