From 7b5ce6985fc6888043667a3170a3c4c844654883 Mon Sep 17 00:00:00 2001 From: andrewkroh Date: Wed, 12 Feb 2025 19:25:29 +0000 Subject: [PATCH 1/7] chore: Update .github/workflows/golangci-lint.yml MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Made with ❤️️ by updatecli --- .github/workflows/golangci-lint.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index 840c30c..02a8fa6 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 From 120cf461412779f6d78f94cae9e5c44c286b3a69 Mon Sep 17 00:00:00 2001 From: andrewkroh Date: Wed, 12 Feb 2025 19:25:29 +0000 Subject: [PATCH 2/7] chore: Update .github/workflows/goreleaser.yml MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Made with ❤️️ by updatecli --- .github/workflows/goreleaser.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From 16c14c504c6bd0bf0b2d986b1305303e54824520 Mon Sep 17 00:00:00 2001 From: andrewkroh Date: Wed, 12 Feb 2025 19:25:30 +0000 Subject: [PATCH 3/7] chore: Update Go version in . MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Made with ❤️️ by updatecli --- go.mod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From 2809010e91119cbca278a7c4dee5495137658706 Mon Sep 17 00:00:00 2001 From: andrewkroh Date: Wed, 12 Feb 2025 19:25:30 +0000 Subject: [PATCH 4/7] chore: Update Go version in GVM readme. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Made with ❤️️ by updatecli --- README.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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: From 6b8a7617a8abe078f7a051308c5ed39ea8b6de2f Mon Sep 17 00:00:00 2001 From: andrewkroh Date: Wed, 12 Feb 2025 19:25:31 +0000 Subject: [PATCH 5/7] chore: Update .github/workflows/go.yml MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Made with ❤️️ by updatecli --- .github/workflows/go.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 From d592f8f230c772f84f2b2c5f3fc8fce66d4fba43 Mon Sep 17 00:00:00 2001 From: Andrew Kroh Date: Wed, 12 Feb 2025 14:29:42 -0500 Subject: [PATCH 6/7] update Go version in CLI usage --- cmd/gvm/gvm.go | 6 +++--- cmd/gvm/install.go | 2 +- cmd/gvm/use.go | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) 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"). From b44c3286679c89ce87d66c586e48447fdfe28834 Mon Sep 17 00:00:00 2001 From: Andrew Kroh Date: Wed, 12 Feb 2025 14:32:13 -0500 Subject: [PATCH 7/7] update golangci-lint 1.60 -> 1.64 --- .github/workflows/golangci-lint.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index 02a8fa6..eef1e6e 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -36,4 +36,4 @@ jobs: - name: golangci-lint uses: golangci/golangci-lint-action@v6 with: - version: v1.60 + version: v1.64