Lock gogofaster to a fixed v1.2.0#50
Conversation
|
CI: |
|
yes... I'll fix the CI problem ;) but it worked in my machine :P |
e6db36f to
dc6cb5b
Compare
|
✔️ Travis approved |
|
Are there any alternatives to avoid changing the contents of |
|
We were currently doing that when using
We could:
Anyway I'd merge this (since it does not change the current behavior) and create a new issue to plan a better way to generate our go code, considering the three alternatives above, or any other that we could find. |
just run it with different |
|
What if we do something like this in a mkdir -p /tmp/tmpgopath
export GOPATH=/tmp/tmpgopath
go get github.com/gogo/protobuf/protoc-gen-gofast
cd $GOPATH/src/github.com/gogo/protobuf
git checkout v1.2.0
go install github.com/gogo/protobuf/protoc-gen-gogofaster
mv $GOPATH/bin/protoc-gen-gogofaster path/our/tools
cd -
rm -rf /tmp/tmpgopath |
|
Compiling
If $ ./_tools/protogen_golang.sh
protoc-gen-gogofaster: program not found or is not executable
--gogofaster_out: protoc-gen-gogofaster: Plugin failed with status code 1.
Failed to run protoc on proto/lookout/sdkChanging Conclusion:
Alternatives to keep user b could be the best, more general and secure one... but I think it would be overengineering the solution; so I'd vote for a. |
|
David: even if there is another gofaster somewhere in the user's path the first one will be used. |
|
I'm already working with that option, but thanks ;) |
|
what I'm trying now (and locally working, is something applying both: building outside of user |
dc6cb5b to
9804eac
Compare
|
Done by 9804eac |
carlosms
left a comment
There was a problem hiding this comment.
LGTM. Maybe we could clean up the downloads and the src folder, but up to you.
9804eac to
c2d2b98
Compare
|
@carlosms your suggestion was partially addressed:
|
Signed-off-by: David Pordomingo <David.Pordomingo.F@gmail.com>
c2d2b98 to
05dd0f3
Compare
This PR would fix the issue with code generation in go, caused by a new release of
gogo/protobuf-v1.2.0.Because of that, Travis is failing: https://travis-ci.org/src-d/lookout-sdk/jobs/465002703
This PR will lock our code generation to the new
gogofaster v1.2.0.Implementation
It builds
protoc-gen-gogofasterfrom releasegogo/protobuf-v1.2.0and uses it without messing user binaries nor sources.Caveats
lookoutto depend on the newprotobuf v1.2.0(it currently depends onv1.1.1)