Hi,
       I am using dep for version management. I need to have the following 
protoc plugin.

go get -u github.com/golang/protobuf/protoc-gen-go
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

The way i understand 'go get' is it gets the latest from tree/master. 
However, i want to fix on the version, rather than getting the latest. 

Can i use 'go install' instead and make it use the vendor directory 
protoc-gen-go version? If yes, how to make 'go install' use that directory, 
i tried

Amits-MacBook-Pro:api achandak$ go install -pkgdir 
vendor/github.com/golang/protobuf/protoc-gen-go protoc-gen-go
can't load package: package protoc-gen-go: cannot find package 
"protoc-gen-go" in any of:
/usr/local/Cellar/go/1.9.3/libexec/src/protoc-gen-go (from $GOROOT)
/Users/achandak/workspace/src/protoc-gen-go (from $GOPATH)

Its still looking at /Users/achandak/workspace/src

Any help is greatly appreciated.

Thanks
Amit

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to