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

improve documentation regarding external dependencies #330

Merged
merged 1 commit into from
Mar 24, 2017

Conversation

CaptTofu
Copy link

I had some problems on OS X that I was chasing my tail with. I realize now what I was doing wrong and updated the docs to reflect an incorrect include path as well as missing golang packages.

many thanks to Travis Cline for the help!

Copy link
Collaborator

@achew22 achew22 left a comment

Choose a reason for hiding this comment

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

@CaptTofu, Thanks for updating our documentation!

I tested this by making a new VM and running all the commands the old way (which didn't work) then I did it your way (which worked). Seems to work. Thanks!

PS: Have you signed the Google CLA?

README.md Outdated

```sh
go get -u github.com/golang/protobuf/protoc-gen-go
go get google.golang.org/grpc
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you add a -u to this call to go get

Copy link
Author

Choose a reason for hiding this comment

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

will do!

README.md Outdated
go get -u github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway
go get -u github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger
go get -u github.com/golang/protobuf/protoc-gen-go
go get -u golang.org/x/net/context`
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think there is a stray ` at the end of this line

Copy link
Author

Choose a reason for hiding this comment

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

will fix :)

README.md Outdated
@@ -89,7 +91,7 @@ Make sure that your `$GOPATH/bin` is in your `$PATH`.
```sh
protoc -I/usr/local/include -I. \
-I$GOPATH/src \
-I$GOPATH/src/github.com/googleapis/googleapis/ \
-I$GOPATH/src/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you add a trailing \ on this line?

Copy link
Author

Choose a reason for hiding this comment

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

yes

@CaptTofu
Copy link
Author

Made changes. Also, I am under HPE's Google Corporate CLA

README.md Outdated

```sh
go get -u github.com/golang/protobuf/protoc-gen-go
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why are these additions necessary?

Copy link
Collaborator

Choose a reason for hiding this comment

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

I accept the first one, for the others added (grpc,context) I would prefer to tell users to 'go get .' after generating code.

Copy link
Author

Choose a reason for hiding this comment

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

The reason I chose explicit packages is I kept adding whatever the results of "go build" would complain about such as in "cannot find package "google.golang.org/grpc"

I didn't know about "go get .". I'll just simply use that as I tested that it works.

@CaptTofu CaptTofu force-pushed the doc_fixes branch 2 times, most recently from b9d0e3a to 568f1fc Compare March 24, 2017 01:53
@CaptTofu
Copy link
Author

Hi there - I think I made all the changes that were requested. Also, I'm covered under the CLA - not sure why that is giving a "status to be reported"

@CaptTofu
Copy link
Author

I signed it!

@tmc tmc changed the title Various updates, corrected include path to README.md improve documentation regarding external dependencies Mar 24, 2017
@tmc tmc merged commit 04870f0 into grpc-ecosystem:master Mar 24, 2017
@tamalsaha tamalsaha mentioned this pull request Mar 30, 2017
1 task
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.

3 participants