ipfs / ipfs-update

An updater tool for Kubo IPFS binary
https://dist.ipfs.tech/#ipfs-update
MIT License
137 stars 60 forks source link

Missing information when install fails #170

Open DavidBurela opened 1 year ago

DavidBurela commented 1 year ago

Version information:

$ ipfs-update --version ipfs-update version v1.9.0

Description:

Searching for information brought me to this repo which says you need go later than 1.12. So I used sudo apt install golang which installs go version go1.18.1 linux/amd64 But running ipfs-update still results in the same error.

Suggestion:

Instead of "could not find a good install location", feedback is needed on what is missing. Is Go missing? is there a path missing? etc. What should be done to resolve this.

Command Output:

The error is the same with or without golang installed.

$ ipfs-update --version
ipfs-update version v1.9.0
$ go version
go version go1.18.1 linux/amd64
$ ipfs-update install latest --verbose
Error fetching: open /home/dave/.ipfs/api: no such file or directory
Fetching with HTTP: "https://ipfs.io/ipns/dist.ipfs.tech/go-ipfs/versions"
fetching go-ipfs version v0.17.0
Error fetching: open /home/dave/.ipfs/api: no such file or directory
Fetching with HTTP: "https://ipfs.io/ipns/dist.ipfs.tech/go-ipfs/v0.17.0/go-ipfs_v0.17.0_linux-amd64.tar.gz"
binary downloaded, verifying...
success! tests all passed.
checking user install locations
install failed, reverting changes...
ERROR: install failed: could not find good install location
welcome[bot] commented 1 year ago

Thank you for submitting your first issue to this repository! A maintainer will be here shortly to triage and review. In the meantime, please double-check that you have provided all the necessary information to make this process easy! Any information that can help save additional round trips is useful! We currently aim to give initial feedback within two business days. If this does not happen, feel free to leave a comment. Please keep an eye on how this issue will be labeled, as labels give an overview of priorities, assignments and additional actions requested by the maintainers:

Finally, remember to use https://discuss.ipfs.io if you just need general support.

DavidBurela commented 1 year ago

I found the cause of the issue. This will cause it to install fine sudo ipfs-update --version

There error message needs to be clearer that it failed due to a lack of using sudo