Skip to content
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

Merged
merged 11 commits into from
Oct 1, 2020
8 changes: 6 additions & 2 deletions contrib/devtools/proto-tools-installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,13 @@ f_install_buf() {

f_install_protoc_gen_gocosmos() {
f_print_installing_with_padding protoc-gen-gocosmos
pushd "${TEMPDIR}" >/dev/null

if ! grep "github.com/gogo/protobuf => github.com/regen-network/protobuf" go.mod &>/dev/null ; then
echo -e "\tPlease run this command from somewhere inside the cosmos-sdk folder."
return 1
fi

go get github.com/regen-network/cosmos-proto/protoc-gen-gocosmos 2>/dev/null
popd >/dev/null
f_print_done
}

Expand Down