Skip to content

Commit

Permalink
Fix installation of gocosmos (cosmos#7410)
Browse files Browse the repository at this point in the history
* Run `make proto-gen` with correct version

* Run with correct gocosmos

* Install gocosmos with go.mod

* Add check go.mod

* Remove comment

* Update contrib/devtools/proto-tools-installer.sh

Co-authored-by: Alessio Treglia <[email protected]>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Oct 1, 2020
1 parent a32e2a0 commit 22b47f4
Showing 1 changed file with 6 additions and 2 deletions.
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

0 comments on commit 22b47f4

Please sign in to comment.