maaslalani / invoice

Command line invoice generator
MIT License
1.83k stars 80 forks source link

can't install #27

Closed pyrite357 closed 1 year ago

pyrite357 commented 1 year ago

I don't use / know enough about GO to troubleshoot this:

go install github.com/maaslalani/invoice@main

returns:

can't load package: package github.com/maaslalani/invoice@main: cannot use path@version syntax in GOPATH mode

Ubuntu 20.04 LTS, x64, go version go1.13.8 linux/amd64

maaslalani commented 1 year ago

Can you try installing a more up to date version of Go?

maaslalani commented 1 year ago

https://go.dev/dl/

maaslalani commented 1 year ago

Thanks for the issue btw, reminds me that we probably need to get this on nix/homebrew/apt/etc...

maaslalani commented 1 year ago

If you aren't able to update Go, you can grab a binary from: https://github.com/maaslalani/invoice/releases

pyrite357 commented 1 year ago

@maaslalani Why did you close the issue before I've had a chance to respond? :-)

What version of Go are you on? Because from what I've read, newer versions are what is the problem since they added this GOPATH thing and then broke your prev install instructions.

pyrite357 commented 1 year ago

I also ran these prior to beginning, idk if you want to add these or not?

mkdir -p ~/go/{bin,pkg,src}
echo 'export GOPATH="$HOME/go"' >> ~/.bashrc
echo 'export PATH="$PATH:${GOPATH//://bin:}/bin"' >> ~/.bashrc
source ~/.bashrc
pyrite357 commented 1 year ago

Installation worked with custom install of latest Go version v1.20.5.