Re: [go-nuts] Fixing the version of protoc-gen-go

2018-04-10 Thread Amit Chandak
Thanks Stephan, that worked

Amit

On Tuesday, March 27, 2018 at 5:38:39 AM UTC-7, Stephan Renatus wrote:
>
> Hi Amit,
>
> have you tried this?
>
> go install ./vendor/github.com/golang/protobuf/protoc-gen-go
>
> Also note that you might have to add a required statement to Gopkg.toml 
> to avoid having the binary's code pruned, see 
> https://github.com/golang/dep/blob/master/docs/Gopkg.toml.md#package-graph-rules-required-and-ignored
>
> HTH
> Stephan
>

-- 
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.


Fwd: [go-nuts] Fixing the version of protoc-gen-go

2018-03-27 Thread Stephan Renatus
Hi Amit,

have you tried this?

go install ./vendor/github.com/golang/protobuf/protoc-gen-go

Also note that you might have to add a required statement to Gopkg.toml to
avoid having the binary's code pruned, see https://github.com/golang/dep/
blob/master/docs/Gopkg.toml.md#package-graph-rules-required-and-ignored

HTH
Stephan

-- 
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.


[go-nuts] Fixing the version of protoc-gen-go

2018-03-23 Thread Timothy Raymond
I've been running protoc and protoc-gen-go in a container (and fixing versions 
by checking out commits) to try to address this problem for my projects. I'd 
love to hear what others have done though.

-- 
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.


[go-nuts] Fixing the version of protoc-gen-go

2018-03-23 Thread amit . chandak
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.