-
Notifications
You must be signed in to change notification settings - Fork 11
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
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/sdk Changing 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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Maybe we could clean up the downloads and the src folder, but up to you.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's fix CI already :)
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-gogofaster
from releasegogo/protobuf-v1.2.0
and uses it without messing user binaries nor sources.Caveats
lookout
to depend on the newprotobuf v1.2.0
(it currently depends onv1.1.1
)