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

Lint/Format check fails when using the protobuf-gradle-plugin and non-main-sourceset protos #197

Open
berksean opened this issue May 22, 2024 · 0 comments

Comments

@berksean
Copy link
Contributor

With this previous issue, a breaking change with the protobuf-gradle-plugin and bug was fixed to remove linting/formatting of generated code.

That fix addressed issues of performing linting of proto files imported from other dependencies. However, it turns out that the protobuf-gradle-plugin will generate multiple build-extracted/protos/... directories when non-main-source-set configurations are used (e.g. testImplementation(<some GAV>)).

This results in the weird broken behavior similar to the previous issue.

I'll put together what I believe to be a straightforward fix that removes the build-extracted--protos- prefixed directories from the set of sources that need to be linted.

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

1 participant