Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not compatible with the v1.46.0 buf #84

Open
XSAM opened this issue Nov 4, 2024 · 1 comment
Open

Not compatible with the v1.46.0 buf #84

XSAM opened this issue Nov 4, 2024 · 1 comment

Comments

@XSAM
Copy link

XSAM commented Nov 4, 2024

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.

Steps to reproduce

@srikrsna-buf
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants