cosmos-sdk
cosmos-sdk copied to clipboard
Unable to install latest version of cosmovisor with go install
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
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
I've got the same issue currently, can't install the latest version
@ryanchristo Do you have a workaround by the way?
You have to build from source. I have a pr that fixes it but It's being blocked
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)
unblocked, however the SDK issue exists (let's continue that conversation in #10378
just want to give thumbs up that the issue is still there
We already migrated the gogo proto, so this will be ready to go soon
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.
@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.
Cosmovisor 1.3.0 is tagged.
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
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 runningcosmovisor 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
?
ah, thank you. that was the issue