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
358 stars 24 forks source link

Add version to `install.sh` or `gobrew self-update` #176

Closed kevincobain2000 closed 5 months ago

kevincobain2000 commented 5 months ago

https://github.com/kevincobain2000/gobrew/blob/f81b971520fe03559153914f6f7d1b2cfdeeb4c2/git.io.sh#L62

Provide optional version:

ASIS

curl -sLk https://raw.githubusercontent.com/kevincobain2000/gobrew/master/git.io.sh | sh

TOBE

curl -sLk https://raw.githubusercontent.com/kevincobain2000/gobrew/master/git.io.sh | sh - 1.10.5

Or for someone who has already gobrew installed, then

ASIS

gobrew self-update

TO

gobrew self-update <version>

juev commented 5 months ago

Hi

Is this necessary in order to be able to roll back if problems are detected? Did I get the meaning right?

kevincobain2000 commented 5 months ago

This is mostly not for users. But for us. if we want to refer to previous working version for investigation purposes.

juev commented 5 months ago

Good point!