Skip to content

Commit a2346ae

Browse files
committed
Prepare for v0.5.1 release
1 parent 99aefa4 commit a2346ae

File tree

4 files changed

+26
-16
lines changed

4 files changed

+26
-16
lines changed

README.md

Lines changed: 21 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ examples for common shells.
88

99
bash:
1010

11-
`eval "$(gvm 1.18.5)"`
11+
`eval "$(gvm 1.21.0)"`
1212

1313
cmd.exe (for batch scripts `%i` should be substituted with `%%i`):
1414

15-
`FOR /f "tokens=*" %i IN ('"gvm.exe" 1.18.5') DO %i`
15+
`FOR /f "tokens=*" %i IN ('"gvm.exe" 1.21.0') DO %i`
1616

1717
powershell:
1818

19-
`gvm --format=powershell 1.18.5 | Invoke-Expression`
19+
`gvm --format=powershell 1.21.0 | Invoke-Expression`
2020

2121
gvm flags can be set via environment variables by setting `GVM_<flag>`. For
2222
example `--http-timeout` can be set via `GVM_HTTP_TIMEOUT=10m`.
@@ -34,35 +34,45 @@ Linux (amd64):
3434

3535
``` bash
3636
# Linux Example (assumes ~/bin is in PATH).
37-
curl -sL -o ~/bin/gvm https://github.com/andrewkroh/gvm/releases/download/v0.5.0/gvm-linux-amd64
37+
curl -sL -o ~/bin/gvm https://github.com/andrewkroh/gvm/releases/download/v0.5.1/gvm-linux-amd64
3838
chmod +x ~/bin/gvm
39-
eval "$(gvm 1.18.5)"
39+
eval "$(gvm 1.21.0)"
40+
go version
41+
```
42+
43+
Linux (arm64):
44+
45+
``` bash
46+
# Linux Example (assumes ~/bin is in PATH).
47+
curl -sL -o ~/bin/gvm https://github.com/andrewkroh/gvm/releases/download/v0.5.1/gvm-linux-arm64
48+
chmod +x ~/bin/gvm
49+
eval "$(gvm 1.21.0)"
4050
go version
4151
```
4252

4353
macOS (universal):
4454

4555
``` bash
4656
# macOS Example
47-
curl -sL -o /usr/local/bin/gvm https://github.com/andrewkroh/gvm/releases/download/v0.5.0/gvm-darwin-all
57+
curl -sL -o /usr/local/bin/gvm https://github.com/andrewkroh/gvm/releases/download/v0.5.1/gvm-darwin-all
4858
chmod +x /usr/local/bin/gvm
49-
eval "$(gvm 1.18.5)"
59+
eval "$(gvm 1.21.0)"
5060
go version
5161
```
5262

5363
Windows (PowerShell):
5464

5565
```
5666
[Net.ServicePointManager]::SecurityProtocol = "tls12"
57-
Invoke-WebRequest -URI https://github.com/andrewkroh/gvm/releases/download/v0.5.0/gvm-windows-amd64.exe -Outfile C:\Windows\System32\gvm.exe
58-
gvm --format=powershell 1.18.5 | Invoke-Expression
67+
Invoke-WebRequest -URI https://github.com/andrewkroh/gvm/releases/download/v0.5.1/gvm-windows-amd64.exe -Outfile C:\Windows\System32\gvm.exe
68+
gvm --format=powershell 1.21.0 | Invoke-Expression
5969
go version
6070
```
6171

6272
Fish Shell:
6373

64-
Use `gvm` with fish shell by executing `gvm 1.18.5 | source` in lieu of using `eval`.
74+
Use `gvm` with fish shell by executing `gvm 1.21.0 | source` in lieu of using `eval`.
6575

6676
For existing Go users:
6777

68-
`go install github.com/andrewkroh/gvm/cmd/gvm@v0.5.0`
78+
`go install github.com/andrewkroh/gvm/cmd/gvm@v0.5.1`

cmd/gvm/gvm.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ binary versions of Go from https://storage.googleapis.com/golang. Below are
1818
examples for common shells.
1919
2020
bash:
21-
eval "$(gvm 1.18.5)"
21+
eval "$(gvm 1.21.0)"
2222
2323
batch (windows cmd.exe):
24-
FOR /f "tokens=*" %i IN ('"gvm.exe" 1.18.5') DO %i
24+
FOR /f "tokens=*" %i IN ('"gvm.exe" 1.21.0') DO %i
2525
2626
powershell:
27-
gvm --format=powershell 1.18.5 | Invoke-Expression
27+
gvm --format=powershell 1.21.0 | Invoke-Expression
2828
2929
gvm flags can be set via environment variables by setting GVM_<flag>. For
3030
example --http-timeout can be set via GVM_HTTP_TIMEOUT=10m.

cmd/gvm/install.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ func installCommand(cmd *kingpin.CmdClause) func(*gvm.Manager) error {
1212
var version string
1313
var build bool
1414
cmd.Flag("build", "Build go version from source").Short('b').BoolVar(&build)
15-
cmd.Arg("version", "Go version to install (e.g. 1.18.5).").StringVar(&version)
15+
cmd.Arg("version", "Go version to install (e.g. 1.21.0).").StringVar(&version)
1616

1717
return func(manager *gvm.Manager) error {
1818
if version == "" {

cmd/gvm/use.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ type useCmd struct {
2020
func useCommand(cmd *kingpin.CmdClause) func(*gvm.Manager) error {
2121
ctx := &useCmd{}
2222

23-
cmd.Arg("version", "Go version to install (e.g. 1.18.5).").StringVar(&ctx.version)
23+
cmd.Arg("version", "Go version to install (e.g. 1.21.0).").StringVar(&ctx.version)
2424
cmd.Flag("build", "Build go version from source").Short('b').BoolVar(&ctx.build)
2525
cmd.Flag("no-install", "Don't install if missing").Short('n').BoolVar(&ctx.noInstall)
2626
cmd.Flag("format", "Format to use for the shell commands. Options: bash, batch, powershell").

0 commit comments

Comments
 (0)