kerolloz / go-installer

Go-Installer: Effortless Golang Installation with One Command! 🚀
MIT License
142 stars 17 forks source link

Broken installation #15

Closed SharkFourSix closed 10 months ago

SharkFourSix commented 10 months ago

Installing without root shows fails and asks for root.

Running with sudo installs to /root/ making it inaccessible to other users.

kerolloz commented 10 months ago

Hello @SharkFourSix Thank you for sharing the issue and sorry for your inconvenience.

Would you please share more details with me?

# What's your output for
uname -a
SharkFourSix commented 10 months ago

I found what the issue was.

Do not export $GOROOT, only $GOPATH, and only if necessary.

The reason it was failing was because goroot and gopath were pointing to the same directory so the installation script was failing to move/delete files.

kerolloz commented 10 months ago

Great. Should we close the issue then?

SharkFourSix commented 10 months ago

Yes please. Sorry forgot to do that