kevincobain2000 / gobrew

Go version manager, written in Go. Super simple tool to install and manage Go versions. Install go without root. Gobrew doesn't require shell rehash.
https://medium.com/web-developer/go-version-manager-gobrew-c8750157dfe6
MIT License
364 stars 24 forks source link

gobrew version is always dev #123

Closed kevincobain2000 closed 12 months ago

kevincobain2000 commented 12 months ago
$ gobrew version
[INFO] gobrew version is dev
juev commented 12 months ago

Yep...

one more:

~/.gobrew/bin
 21:03:58  ❯ ./gobrew version
[INFO] gobrew version is dev

~/.gobrew/bin
 21:04:12  ❯ gobrew ls
panic: runtime error: index out of range [2] with length 0

goroutine 1 [running]:
github.com/kevincobain2000/gobrew.(*GoBrew).ListVersions(0xc000137f00)
    /home/runner/work/gobrew/gobrew/gobrew.go:149 +0x8f2
main.main()
    /home/runner/work/gobrew/gobrew/cmd/gobrew/main.go:70 +0x18a
juev commented 12 months ago

As I understand it, my changes broke everything. And due to the fact that we do not have full tests, we did not notice this in time. :(

juev commented 12 months ago

I seem to have corrected the panic, but it’s not yet very clear what’s happening with the version.

kevincobain2000 commented 12 months ago

Cool

╭─pulkit.kathuria@JP-GCJKVGQK0G^M ~/git/gobrew ‹master›
╰─$ gobrew self-update
Downloading 100% |██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| (5.9/5.9 MB, 9.0 MB/s)
Upgrade successful
╭─pulkit.kathuria@JP-GCJKVGQK0G^M ~/git/gobrew ‹master›
╰─$ gobrew version
[INFO] gobrew version is 1.8.9