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
10 changes: 8 additions & 2 deletions contrib/devtools/proto-tools-installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,15 @@ f_install_buf() {

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

# Note: we need to run this command in the root folder, because we added some
# an alias to our own fork of gogoproto inside go.mod.
amaury1093 marked this conversation as resolved.
Show resolved Hide resolved
if ! grep "github.com/gogo/protobuf => github.com/regen-network/protobuf" go.mod &>/dev/null ; then
echo -e "\tPlease run this command from the root folder."
amaury1093 marked this conversation as resolved.
Show resolved Hide resolved
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
Loading