From 950c608939832984dce9b47539c1d89d1aa6fe86 Mon Sep 17 00:00:00 2001 From: Jan De Dobbeleer Date: Sun, 19 May 2024 08:28:16 +0200 Subject: [PATCH] feat(go): upgrade to 1.22.3 --- .devcontainer/devcontainer.json | 2 +- .github/workflows/composite/bootstrap-go/action.yml | 2 +- src/go.mod | 2 +- src/segments/golang_test.go | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 726e5dcc..ed76a361 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -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", diff --git a/.github/workflows/composite/bootstrap-go/action.yml b/.github/workflows/composite/bootstrap-go/action.yml index 63f93482..8a5415e3 100644 --- a/.github/workflows/composite/bootstrap-go/action.yml +++ b/.github/workflows/composite/bootstrap-go/action.yml @@ -9,4 +9,4 @@ runs: steps: - uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 with: - go-version: '1.22.0' + go-version: '1.22.3' diff --git a/src/go.mod b/src/go.mod index 1af30342..668661ac 100644 --- a/src/go.mod +++ b/src/go.mod @@ -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 diff --git a/src/segments/golang_test.go b/src/segments/golang_test.go index 022c02ee..730516eb 100644 --- a/src/segments/golang_test.go +++ b/src/segments/golang_test.go @@ -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",