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

Fix filtering of source file sets #148

Merged
merged 8 commits into from
Jul 21, 2024

Conversation

alexander-yevsyukov
Copy link
Contributor

@alexander-yevsyukov alexander-yevsyukov commented Jul 20, 2024

This PR fixes the filtering of source file sets produced by gRPC when they are not applicable. Also it applies latest version of Validation which addresses the same issue.

Previously, actions relied on the call to SourceFileSet.hasJavaFiles, which checks for the presence of a Java file in the set. gRPC Protobuf compiler does produce Java files, but the output placed under the grpc directory does not contain message files participating in gRPC calls. They are placed under the java directory. Because of this it is not possible to find a source code file matching a message in the source file set under the grpc directory.

Now, we call SourceFileSet.hasJavaOutput, which checks the target directory and that solves the filtering issue.

@alexander-yevsyukov alexander-yevsyukov self-assigned this Jul 20, 2024
@alexander-yevsyukov alexander-yevsyukov marked this pull request as ready for review July 20, 2024 22:26
Copy link
Contributor

@armiol armiol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@alexander-yevsyukov same as with validation#129, I don't understand how this all touches gRPC output.

@alexander-yevsyukov
Copy link
Contributor Author

@alexander-yevsyukov same as with validation#129, I don't understand how this all touches gRPC output.

I've updated the PR description.

@alexander-yevsyukov alexander-yevsyukov merged commit 7d9e8b3 into master Jul 21, 2024
7 checks passed
@alexander-yevsyukov alexander-yevsyukov deleted the fix-filtering-of-source-file-sets branch July 21, 2024 14:44
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

Successfully merging this pull request may close these issues.

2 participants