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

Drop the '.txt' extension from reflection data #1731

Merged
merged 3 commits into from
Dec 4, 2023

Conversation

glbrntt
Copy link
Collaborator

@glbrntt glbrntt commented Dec 4, 2023

Motivation:

Generated reflection data has a ".txt" extension. This isn't quite right as the contents is base64 encdoded data. Moreover the generated reflection data is intended as an implementation detail for the reflection service.

Modifications:

  • Change the generated reflection data extension from ".grpc.reflection.txt" to ".grpc.reflection".
  • Fix a bug in the reflection server example where resources couldn't be loaded because no subdirectory was provided

Result:

Generated reflection data files don't have a ".txt" extension

Motivation:

Generated reflection data has a ".txt" extension. This isn't quite right
as the contents is base64 encdoded data. Moreover the generated
reflection data is intended as an implementation detail for the
reflection service.

Modifications:

- Change the generated reflection data extension from
  ".grpc.reflection.txt" to ".grpc.reflection".
- Fix a bug in the reflection server example where resources couldn't be
  loaded because no subdirectory was provided

Result:

Generated reflection data files don't have a ".txt" extension
@glbrntt glbrntt added the 🔨 semver/patch No public API change. label Dec 4, 2023
@glbrntt glbrntt requested a review from stefanadranca December 4, 2023 10:41
@glbrntt glbrntt enabled auto-merge (squash) December 4, 2023 11:13
Copy link
Collaborator

@stefanadranca stefanadranca left a comment

Choose a reason for hiding this comment

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

Looks good to me!👍

@glbrntt glbrntt merged commit a7b4240 into grpc:main Dec 4, 2023
13 checks passed
@glbrntt glbrntt deleted the gb-reflection-extension branch December 4, 2023 11:21
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.

3 participants