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

Support go get #155

Closed
nylira opened this issue Aug 15, 2020 · 6 comments
Closed

Support go get #155

nylira opened this issue Aug 15, 2020 · 6 comments

Comments

@nylira
Copy link
Contributor

nylira commented Aug 15, 2020

If developers wanted to use the latest version of Starport right now they can only clone the repo and make it manually. That doesn't solve adding it to their machine's $PATH variable.

What if we supported

go get github.com/tendermint/starport

Would that be useful?

@fadeev
Copy link
Contributor

fadeev commented Aug 15, 2020

@nylira Running make inside a repo should install starport into ~/go/bin/. If it doesn't, it's a bug.

We do support go get! (be sure to run it outside of a dir with a go.mod or prefix the command with GO111MODULE=off)

go get github.com/tendermint/starport/...

What kind of error are you getting?

@citroncash
Copy link

exec: "blogd": executable file not found in $PATH

solved with: export PATH=$PATH:~/go/bin

@fadeev
Copy link
Contributor

fadeev commented Aug 15, 2020

@nylira (correction) go get works, but for now it's not the best way to install Starport. When we move to a different packaging tool (from packr2 to statik), and test that go get works fine, we'll add this option to the readme.

@fadeev
Copy link
Contributor

fadeev commented Apr 9, 2021

The recommended way of installing Starport now is curl https://get.starport.network/starport! | bash. We'll probably not be supporting go get any time soon, just because Starport now includes too much to be simply go gettable.

@fadeev fadeev closed this as completed Apr 9, 2021
@fadeev
Copy link
Contributor

fadeev commented Apr 9, 2021

Apparently, Starport should be "go gettable" (thanks @ilgooz!). I am getting an error, though:

fadeev@system ~ % go get github.com/tendermint/starport
go: downloading github.com/tendermint/starport v0.15.1
go get: github.com/tendermint/starport@v0.14.0 updating to
	github.com/tendermint/starport@v0.15.1 requires
	github.com/cosmos/cosmos-sdk@v0.41.3 requires
	github.com/gogo/protobuf@v1.3.3: reading github.com/gogo/protobuf/go.mod at revision v1.3.3: unknown revision v1.3.3

@ilgooz
Copy link
Member

ilgooz commented Apr 9, 2021

Seems like current version of Go does not support replace directives in go.mod when using go get.

As a workaround, git clone https://github.com/tendermint/starport.git && cd starport && go install ./... should work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants