andrewkroh / gvm

Go Version Manager (written in Go for cross-platform usability)
Apache License 2.0
186 stars 24 forks source link

add gvm use -n/--no-install option #35

Closed graphaelli closed 3 years ago

graphaelli commented 3 years ago

Mostly to enable gvm use tip -n.

[15:02:09] ~/src/gvm (use-no-install) $ cat ~/.gvm/cache/go.meta 
{"Updated":"2021-01-07T14:23:47.883139-05:00"}

[15:02:15] ~/src/gvm (use-no-install) $ gvm use tip -n
export GOROOT="/Users/gil/.gvm/versions/gotip.darwin.amd64"
export PATH="/Users/gil/.gvm/versions/gotip.darwin.amd64/bin:$PATH"

[15:02:18] ~/src/gvm (use-no-install) $ cat ~/.gvm/cache/go.meta 
{"Updated":"2021-01-07T14:23:47.883139-05:00"}

[15:02:19] ~/src/gvm (use-no-install) $ gvm use tip
export GOROOT="/Users/gil/.gvm/versions/gotip.darwin.amd64"
export PATH="/Users/gil/.gvm/versions/gotip.darwin.amd64/bin:$PATH"

[15:03:11] ~/src/gvm (use-no-install) $ cat ~/.gvm/cache/go.meta 
{"Updated":"2021-01-08T15:02:23.408087-05:00"}
andrewkroh commented 3 years ago

Hi Gil, so is this to enable the use of gvm use tip without having it do an update?

graphaelli commented 3 years ago

Yes, exactly

andrewkroh commented 3 years ago

I'll add a changelog entry and make a release.