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

Usage instructions incomplete #346

Open
mrt181 opened this issue Apr 4, 2017 · 4 comments
Open

Usage instructions incomplete #346

mrt181 opened this issue Apr 4, 2017 · 4 comments

Comments

@mrt181
Copy link

mrt181 commented Apr 4, 2017

I am following the usage instructions. I have created all the stubs and now I arrived at this point:

Note: After generating the code for each of the stubs, in order to build the code, you will want to run go get . from the directory containing the stubs.

After creating the go stubs all I get is this:

C:\cygwin64\home\username\sourcecode\myservice\src\main\proto>cmd -v
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\cygwin64\home\username\sourcecode\myservice\src\main\proto>dir /B
myservice.pb.go
myservice.pb.gw.go
myservice.proto

C:\cygwin64\home\username\sourcecode\myservice\src\main\proto>echo %GOROOT%
C:\Go\

C:\cygwin64\home\username\sourcecode\myservice\src\main\proto>echo %GOPATH%
C:\cygwin64\home\username\go

C:\cygwin64\home\username\sourcecode\myservice\src\main\proto>dir /B %GOPATH%
bin
pkg
src

C:\cygwin64\home\username\sourcecode\myservice\src\main\proto>go version
go version go1.8 windows/amd64

C:\cygwin64\home\username\sourcecode\myservice\src\main\proto>go get .
go install: no install location for directory C:\cygwin64\home\username\sourcecode\myservice\src\main\proto outside GOPATH
        For more details see: 'go help gopath'

I am not a go developer. When i move the go stubs inside the go workspace, e.g. %GOPATH%\src\myservice and cd into that directory and execute go get . it does not complain anymore and creates this file %GOPATH%\pkg\windows_amd64\myservice.a.

@tmc
Copy link
Collaborator

tmc commented Apr 4, 2017

@mrt181 thanks for your issue report. I think the missing step is that we assume you are operating somewhere within your GOPATH. Would you be open to opening a documentation pull request?

@mrt181
Copy link
Author

mrt181 commented Apr 4, 2017

will do so later today

@tmc
Copy link
Collaborator

tmc commented Apr 4, 2017 via email

@mrt181
Copy link
Author

mrt181 commented Apr 4, 2017

#347

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants