-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Fix installation of gocosmos #7410
Conversation
Could someone with the correct version also run |
Confirmed I have no diff! |
make proto-gen
with correct version
Codecov Report
@@ Coverage Diff @@
## master #7410 +/- ##
==========================================
- Coverage 55.07% 54.81% -0.26%
==========================================
Files 588 587 -1
Lines 36760 36512 -248
==========================================
- Hits 20245 20014 -231
+ Misses 14417 14406 -11
+ Partials 2098 2092 -6 |
@robert-zaremba dixit:
Those lines remove |
So, the whole command (
Go modules can be used to run binaries. Just use Howe however here we have more delicate problem. Instead of us running the binary, it's The ideal solution would be to:
|
No thanks. Using
No thanks. GOBIN breaks cross-compilation and should not be used. The root of all evils here still lies with the absence of a global
This is perhaps the best idea. I'm still in favour of installing and using all these tools from some sort of |
I'm not aware about any other way to do it without setting |
BTW: there are more people who has same problem: golang/go#32504
|
So, if we don't have any other solution I'm also for removing this script at all and encapsulate all protobuf dependencies in a docker container. (same @amaurymartiny , @aaronc , @anilcse , @ethanfrey ....) |
(sorry, I missed the button ;) ) |
GOBIN is unnecessary because the binary default installation directory is
Yes. It's known limitation of
Yep - @marbar3778 was working on that IIRC? |
Exactly, this is what I meant: to pin |
💯 for this The Dockerfile can/should be in the cosmos-sdk/devtools directory but trying to auto-gen code without locked versions between dev environments is chaos. |
dkr++ |
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.
Works for me. Only diff is staking
Are we okay to merge this temporary fix while waiting for the Docker solution (tracked here: #7332) ? |
Description
the command
go get github.com/regen-network/cosmos-proto/protoc-gen-gocosmos
needs to run in the root folder, to be aware of thereplace
we added in go.mod.I then ran
make proto-gen
with the following versions:cosmos-sdk/contrib/devtools/proto-tools-installer.sh
Lines 10 to 11 in ddaa3c5
Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.
docs/
) or specification (x/<module>/spec/
)godoc
comments.Unreleased
section inCHANGELOG.md
Files changed
in the Github PR explorerCodecov Report
in the comment section below once CI passes