-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
protoc-gen-go-grpc: update README to clarify --go-grpc_opt
#7825
protoc-gen-go-grpc: update README to clarify --go-grpc_opt
#7825
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #7825 +/- ##
==========================================
+ Coverage 81.91% 81.98% +0.07%
==========================================
Files 377 377
Lines 38065 38065
==========================================
+ Hits 31180 31208 +28
+ Misses 5581 5558 -23
+ Partials 1304 1299 -5 |
cmd/protoc-gen-go-grpc/README.md
Outdated
@@ -17,6 +17,10 @@ E.g.: | |||
protoc --go-grpc_out=. --go-grpc_opt=require_unimplemented_servers=false[,other options...] \ | |||
``` | |||
|
|||
**Using of --go-grpc_out and --go-grpc_opt** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hanut19 you don't have to document go-grpc_out and go-grpc_opt for this task
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done please check
cmd/protoc-gen-go-grpc/README.md
Outdated
@@ -17,6 +17,10 @@ E.g.: | |||
protoc --go-grpc_out=. --go-grpc_opt=require_unimplemented_servers=false[,other options...] \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the issue ask to make this statement more readable since we have gotten multiple complaints to be confused by this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Something like this
protoc --go-grpc_out=. --go-grpc_opt=require_unimplemented_servers=false \
--go-grpc_opt=[other options...]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done please check
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this suggestion won't work. both flags shouldn't be same. I meant the other one to be --go_opt
9b4666d
to
9f6e45a
Compare
--go-grpc_opt
cmd/protoc-gen-go-grpc/README.md
Outdated
@@ -14,7 +14,8 @@ To restore this behavior, set the option `require_unimplemented_servers=false`. | |||
E.g.: | |||
|
|||
```sh | |||
protoc --go-grpc_out=. --go-grpc_opt=require_unimplemented_servers=false[,other options...] \ | |||
protoc --go-grpc_out=. --go-grpc_opt=require_unimplemented_servers=false \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: extra space
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done please check
cmd/protoc-gen-go-grpc/README.md
Outdated
@@ -14,7 +14,8 @@ To restore this behavior, set the option `require_unimplemented_servers=false`. | |||
E.g.: | |||
|
|||
```sh | |||
protoc --go-grpc_out=. --go-grpc_opt=require_unimplemented_servers=false[,other options...] \ | |||
protoc --go-grpc_out=. --go-grpc_opt=require_unimplemented_servers=false \ | |||
--go-grpc_opt=[other options...] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
need \ at the end and everything can be in single line
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done please check
9f6e45a
to
2032c3c
Compare
@@ -14,7 +14,8 @@ To restore this behavior, set the option `require_unimplemented_servers=false`. | |||
E.g.: | |||
|
|||
```sh | |||
protoc --go-grpc_out=. --go-grpc_opt=require_unimplemented_servers=false[,other options...] \ | |||
protoc --go-grpc_out=. --go-grpc_opt=require_unimplemented_servers=false \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hanut19 i will close this PR for now since it is actually fixed. I have asked Doug in the issue if we should actually delete this section. If yes, you can open a separate PR to delete the section. |
Address: #5651
RELEASE NOTES: None