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 no output when Client=False,TestClient=True #1765

Merged
merged 4 commits into from
Jan 22, 2024

Conversation

severnt
Copy link
Contributor

@severnt severnt commented Jan 20, 2024

Up until 1.19.0, passing Client=False and TestClient=True would result in a file being generated. After commit 09c46b0 - this no longer happens.

Copy link

linux-foundation-easycla bot commented Jan 20, 2024

CLA Signed

The committers listed above are authorized under a signed CLA.

@severnt severnt force-pushed the fix-generate-test-clients branch from fab82d0 to f030f5a Compare January 20, 2024 00:03
@glbrntt glbrntt added the 🔨 semver/patch No public API change. label Jan 22, 2024
Copy link
Collaborator

@glbrntt glbrntt left a comment

Choose a reason for hiding this comment

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

Thank you!

@@ -156,7 +156,7 @@ func main(args: [String]) throws {
binaryFile.content = serializedFileDescriptorProto
response.file.append(binaryFile)
}
if !fileDescriptor.services.isEmpty && (options.generateClient || options.generateServer) {
if !fileDescriptor.services.isEmpty && (options.generateClient || options.generateServer || options.generateTestClient) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Oh sorry, the formatter doesn't like this, could you run ./scripts/format.sh -f?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Looks like the formatter script isn't happy with -f.. I'll put up a separate PR for that.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Ah, right, -f isn't required but the script tells you to pass it 🙈

@severnt severnt force-pushed the fix-generate-test-clients branch from 062b4c7 to 0fb60da Compare January 22, 2024 15:13
@glbrntt glbrntt enabled auto-merge (squash) January 22, 2024 15:19
@glbrntt glbrntt merged commit 3a78b54 into grpc:main Jan 22, 2024
13 of 14 checks passed
glbrntt pushed a commit to glbrntt/grpc-swift that referenced this pull request Feb 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔨 semver/patch No public API change.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants