feat: pin to go 1.22

This commit is contained in:
Jan De Dobbeleer 2024-03-12 09:41:47 +01:00 committed by Jan De Dobbeleer
parent b38df39fd2
commit f6a0bedf6e
3 changed files with 3 additions and 3 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.21-bullseye",
"VARIANT": "1-1.22-bullseye",
// Options:
"POSH_THEME": "/workspaces/oh-my-posh/themes/jandedobbeleer.omp.json",

View file

@ -1,6 +1,6 @@
module github.com/jandedobbeleer/oh-my-posh/src
go 1.21
go 1.22.0
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.21", ParseModFile: true, HasModFileInParentDir: true, ExpectedString: "1.21"},
{Case: "go.mod 1.22.0", ParseModFile: true, HasModFileInParentDir: true, ExpectedString: "1.22.0"},
{Case: "no go.mod file fallback", ParseModFile: true, ExpectedString: "1.16", Version: "go version go1.16 darwin/amd64"},
{
Case: "invalid go.mod file fallback",