diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 2ac82ab..26d7d17 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -26,7 +26,7 @@ jobs: - name: set up Go uses: actions/setup-go@v5 with: - go-version: '1.23.x' + go-version: '1.24.x' - name: cross build with goreleaser uses: goreleaser/goreleaser-action@v6 @@ -48,7 +48,7 @@ jobs: - name: set up Go uses: actions/setup-go@v5 with: - go-version: '1.23.x' + go-version: '1.24.x' - name: go test run: go test -timeout 15m ./... \ No newline at end of file diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index 840c30c..eef1e6e 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -23,7 +23,7 @@ jobs: steps: - uses: actions/setup-go@v5 with: - go-version: '1.23.x' + go-version: '1.24.x' - uses: actions/checkout@v4 @@ -36,4 +36,4 @@ jobs: - name: golangci-lint uses: golangci/golangci-lint-action@v6 with: - version: v1.60 + version: v1.64 diff --git a/.github/workflows/goreleaser.yml b/.github/workflows/goreleaser.yml index fe3285e..6c3cf18 100644 --- a/.github/workflows/goreleaser.yml +++ b/.github/workflows/goreleaser.yml @@ -29,7 +29,7 @@ jobs: name: Set up Go uses: actions/setup-go@v5 with: - go-version: '1.23.x' + go-version: '1.24.x' - name: Run GoReleaser uses: goreleaser/goreleaser-action@v6 diff --git a/README.md b/README.md index 6f007ed..0680fd8 100644 --- a/README.md +++ b/README.md @@ -8,15 +8,15 @@ examples for common shells. bash: -`eval "$(gvm 1.23.6)"` +`eval "$(gvm 1.24.0)"` cmd.exe (for batch scripts `%i` should be substituted with `%%i`): -`FOR /f "tokens=*" %i IN ('"gvm.exe" 1.23.6') DO %i` +`FOR /f "tokens=*" %i IN ('"gvm.exe" 1.24.0') DO %i` powershell: -`gvm --format=powershell 1.23.6 | Invoke-Expression` +`gvm --format=powershell 1.24.0 | Invoke-Expression` gvm flags can be set via environment variables by setting `GVM_`. For example `--http-timeout` can be set via `GVM_HTTP_TIMEOUT=10m`. @@ -36,7 +36,7 @@ Linux (amd64): # Linux Example (assumes ~/bin is in PATH). curl -sL -o ~/bin/gvm https://github.com/andrewkroh/gvm/releases/download/v0.5.2/gvm-linux-amd64 chmod +x ~/bin/gvm -eval "$(gvm 1.23.6)" +eval "$(gvm 1.24.0)" go version ``` @@ -46,7 +46,7 @@ Linux (arm64): # Linux Example (assumes ~/bin is in PATH). curl -sL -o ~/bin/gvm https://github.com/andrewkroh/gvm/releases/download/v0.5.2/gvm-linux-arm64 chmod +x ~/bin/gvm -eval "$(gvm 1.23.6)" +eval "$(gvm 1.24.0)" go version ``` @@ -56,7 +56,7 @@ macOS (universal): # macOS Example curl -sL -o /usr/local/bin/gvm https://github.com/andrewkroh/gvm/releases/download/v0.5.2/gvm-darwin-all chmod +x /usr/local/bin/gvm -eval "$(gvm 1.23.6)" +eval "$(gvm 1.24.0)" go version ``` @@ -65,13 +65,13 @@ Windows (PowerShell): ``` [Net.ServicePointManager]::SecurityProtocol = "tls12" Invoke-WebRequest -URI https://github.com/andrewkroh/gvm/releases/download/v0.5.2/gvm-windows-amd64.exe -Outfile C:\Windows\System32\gvm.exe -gvm --format=powershell 1.23.6 | Invoke-Expression +gvm --format=powershell 1.24.0 | Invoke-Expression go version ``` Fish Shell: -Use `gvm` with fish shell by executing `gvm 1.23.6 | source` in lieu of using `eval`. +Use `gvm` with fish shell by executing `gvm 1.24.0 | source` in lieu of using `eval`. For existing Go users: diff --git a/cmd/gvm/gvm.go b/cmd/gvm/gvm.go index 44a05af..a1becd4 100644 --- a/cmd/gvm/gvm.go +++ b/cmd/gvm/gvm.go @@ -18,13 +18,13 @@ binary versions of Go from https://storage.googleapis.com/golang. Below are examples for common shells. bash: - eval "$(gvm 1.21.0)" + eval "$(gvm 1.24.0)" batch (windows cmd.exe): - FOR /f "tokens=*" %i IN ('"gvm.exe" 1.21.0') DO %i + FOR /f "tokens=*" %i IN ('"gvm.exe" 1.24.0') DO %i powershell: - gvm --format=powershell 1.21.0 | Invoke-Expression + gvm --format=powershell 1.24.0 | Invoke-Expression gvm flags can be set via environment variables by setting GVM_. For example --http-timeout can be set via GVM_HTTP_TIMEOUT=10m. diff --git a/cmd/gvm/install.go b/cmd/gvm/install.go index f802548..2a4a688 100644 --- a/cmd/gvm/install.go +++ b/cmd/gvm/install.go @@ -12,7 +12,7 @@ func installCommand(cmd *kingpin.CmdClause) func(*gvm.Manager) error { var version string var build bool cmd.Flag("build", "Build go version from source").Short('b').BoolVar(&build) - cmd.Arg("version", "Go version to install (e.g. 1.21.0).").StringVar(&version) + cmd.Arg("version", "Go version to install (e.g. 1.24.0).").StringVar(&version) return func(manager *gvm.Manager) error { if version == "" { diff --git a/cmd/gvm/use.go b/cmd/gvm/use.go index 9963f39..8987520 100644 --- a/cmd/gvm/use.go +++ b/cmd/gvm/use.go @@ -20,7 +20,7 @@ type useCmd struct { func useCommand(cmd *kingpin.CmdClause) func(*gvm.Manager) error { ctx := &useCmd{} - cmd.Arg("version", "Go version to install (e.g. 1.21.0).").StringVar(&ctx.version) + cmd.Arg("version", "Go version to install (e.g. 1.24.0).").StringVar(&ctx.version) cmd.Flag("build", "Build go version from source").Short('b').BoolVar(&ctx.build) cmd.Flag("no-install", "Don't install if missing").Short('n').BoolVar(&ctx.noInstall) cmd.Flag("format", "Format to use for the shell commands. Options: bash, batch, powershell"). diff --git a/go.mod b/go.mod index 5c26800..a156027 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/andrewkroh/gvm -go 1.23 +go 1.24 require ( github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751 // indirect