feat(go): upgrade to 1.22.3

This commit is contained in:
Jan De Dobbeleer 2024-05-19 08:28:16 +02:00 committed by Jan De Dobbeleer
parent 4e9f7f9060
commit 950c608939
4 changed files with 4 additions and 4 deletions

View file

@ -8,7 +8,7 @@
// Update the VARIANT arg to pick a version of Go: 1, 1.16, 1.17
// Append -bullseye or -buster to pin to an OS version.
// Use -bullseye variants on local arm64/Apple Silicon.
"VARIANT": "1-1.22-bullseye",
"VARIANT": "1-1.22.3-bullseye",
// Options:
"POSH_THEME": "/workspaces/oh-my-posh/themes/jandedobbeleer.omp.json",

View file

@ -9,4 +9,4 @@ runs:
steps:
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
with:
go-version: '1.22.0'
go-version: '1.22.3'

View file

@ -1,6 +1,6 @@
module github.com/jandedobbeleer/oh-my-posh/src
go 1.22.0
go 1.22.3
require (
github.com/Azure/go-ansiterm v0.0.0-20230124172434-306776ec8161

View file

@ -22,7 +22,7 @@ func TestGolang(t *testing.T) {
}{
{Case: "Go 1.15", ExpectedString: "1.15.8", Version: "go version go1.15.8 darwin/amd64"},
{Case: "Go 1.16", ExpectedString: "1.16", Version: "go version go1.16 darwin/amd64"},
{Case: "go.mod 1.22.0", ParseModFile: true, HasModFileInParentDir: true, ExpectedString: "1.22.0"},
{Case: "go.mod 1.22.3", ParseModFile: true, HasModFileInParentDir: true, ExpectedString: "1.22.3"},
{Case: "no go.mod file fallback", ParseModFile: true, ExpectedString: "1.16", Version: "go version go1.16 darwin/amd64"},
{
Case: "invalid go.mod file fallback",