You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What does 'go version' print?
go version go1.3 linux/amd64
What steps reproduce the problem?
1. Run: go get -u code.google.com/p/gogoprotobuf/protoc-gen-go
2. Now run: go get -u code.google.com/p/gogoprotobuf/{proto,protoc-gen-go,gogoproto}
What happened?
Command #1 fails with a clear message that indicates the non-existent URL under the
heading "package code.google.com/p/gogoprotobuf/protoc-gen-go". Here the
issue is that I mistyped protoc-gen-go instead of protoc-gen-gogo. No issues with the
error message in this step.
package code.google.com/p/gogoprotobuf/protoc-gen-go
imports code.google.com/p/gogoprotobuf/protoc-gen-go
imports code.google.com/p/gogoprotobuf/protoc-gen-go: cannot find package "code.google.com/p/gogoprotobuf/protoc-gen-go" in any of:
/usr/local/go/src/pkg/code.google.com/p/gogoprotobuf/protoc-gen-go (from $GOROOT)
/home/user1/gocode/src/code.google.com/p/gogoprotobuf/protoc-gen-go (from $GOPATH)
Command #2 is similar to command #1, except it is preceded by a package that does exist.
Now it prints
package code.google.com/p/gogoprotobuf/proto
imports code.google.com/p/gogoprotobuf/protoc-gen-go
imports code.google.com/p/gogoprotobuf/protoc-gen-go
imports code.google.com/p/gogoprotobuf/protoc-gen-go: cannot find package "code.google.com/p/gogoprotobuf/protoc-gen-go" in any of:
/usr/local/go/src/pkg/code.google.com/p/gogoprotobuf/protoc-gen-go (from $GOROOT)
/home/user1/gocode/src/code.google.com/p/gogoprotobuf/protoc-gen-go (from $GOPATH)
The error message lead me to believe the proto package (which installed just fine)
somehow imports protoc-gen-go and Go can't find the import.
What should have happened instead?
The error message should be labeled with the package that failed to import, similar to
Step 1.
Please provide any additional information below.
The text was updated successfully, but these errors were encountered:
by hbhaskaran:
The text was updated successfully, but these errors were encountered: