cosmos-sdk icon indicating copy to clipboard operation
cosmos-sdk copied to clipboard

Unable to install latest version of cosmovisor with go install

Open ryanchristo opened this issue 2 years ago • 7 comments

Summary of Bug

Attempting to install cosmovisor using go install produces the following error:

$ go install github.com/cosmos/cosmos-sdk/cosmovisor/cmd/[email protected]
go install: github.com/cosmos/cosmos-sdk/cosmovisor/cmd/[email protected] (in github.com/cosmos/cosmos-sdk/[email protected]):
	The go.mod file for the module providing named packages contains one or
	more replace directives. It must not contain directives that would cause
	it to be interpreted differently than if it were the main module.

Version

cosmovisor/v1.1.0

Steps to Reproduce

go install github.com/cosmos/cosmos-sdk/cosmovisor/cmd/[email protected]

For Admin Use

  • [ ] Not duplicate issue
  • [ ] Appropriate labels applied
  • [ ] Appropriate contributors tagged
  • [ ] Contributor assigned/self-assigned

ryanchristo avatar Mar 02 '22 03:03 ryanchristo

I've got the same issue currently, can't install the latest version

hdmiimdh avatar Mar 02 '22 07:03 hdmiimdh

@ryanchristo Do you have a workaround by the way?

hdmiimdh avatar Mar 02 '22 07:03 hdmiimdh

You have to build from source. I have a pr that fixes it but It's being blocked

tac0turtle avatar Mar 02 '22 08:03 tac0turtle

Gotcha. So basically doing the following

git clone [email protected]:cosmos/cosmos-sdk cd cosmos-sdk git checkout cosmovisor/v1.1.0 make cosmovisor cp cosmovisor/cosmovisor ~/go/bin/cosmovisor echo $(which cosmovisor)

hdmiimdh avatar Mar 02 '22 08:03 hdmiimdh

unblocked, however the SDK issue exists (let's continue that conversation in #10378

robert-zaremba avatar Mar 02 '22 23:03 robert-zaremba

just want to give thumbs up that the issue is still there

StanislavBerezin avatar Mar 06 '22 09:03 StanislavBerezin

We already migrated the gogo proto, so this will be ready to go soon

robert-zaremba avatar Mar 17 '22 01:03 robert-zaremba

I don't think this is solved:

  • [x] We need to tag new cosmos-sdk release and use it in cosmovisor (partially done - we depend on a github commit version)
  • [x] remove replace github.com/gogo/protobuf in cosmovisor
  • [ ] tag new cosmovisor release.

robert-zaremba avatar Sep 11 '22 12:09 robert-zaremba

@latest works already, but let's make it official and tag a 1.3.

We depend only on the upgrade types, so it's okay to depend on a commit version till we get 0.47. Dependabot will fix that eventually.

julienrbrt avatar Sep 11 '22 13:09 julienrbrt

Cosmovisor 1.3.0 is tagged.

julienrbrt avatar Sep 11 '22 14:09 julienrbrt

this still happens in cosmovisor 1.3.0. I just installed it with go install github.com/cosmos/cosmos-sdk/cosmovisor/cmd/cosmovisor@latest. but running cosmovisor version give me the original error above. After setting env vars, I get cosmovisor version: v1.3.0. Error: failed to run version command: current binary is invalid: cannot stat dir /home/ubuntu/.provenanced/cosmovisor/genesis/bin/provenanced: stat /home/ubuntu/.provenanced/cosmovisor/genesis/bin/provenanced: no such file or directory

paullintilhac avatar Sep 29 '22 14:09 paullintilhac

this still happens in cosmovisor 1.3.0. I just installed it with go install github.com/cosmos/cosmos-sdk/cosmovisor/cmd/cosmovisor@latest. but running cosmovisor version give me the original error above. After setting env vars, I get `cosmovisor version: v1.3.0.

Error: failed to run version command: current binary is invalid: cannot stat dir /home/ubuntu/.provenanced/cosmovisor/genesis/bin/provenanced: stat /home/ubuntu/.provenanced/cosmovisor/genesis/bin/provenanced: no such file or directory`

Could you share to what you've set the env variable? Have you run cosmovisor init?

julienrbrt avatar Sep 29 '22 16:09 julienrbrt

ah, thank you. that was the issue

paullintilhac avatar Sep 29 '22 19:09 paullintilhac