Skip to content

Commit

Permalink
feat(go): upgrade to 1.22.3
Browse files Browse the repository at this point in the history
  • Loading branch information
JanDeDobbeleer committed May 19, 2024
1 parent 4e9f7f9 commit 950c608
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/composite/bootstrap-go/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ runs:
steps:
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
with:
go-version: '1.22.0'
go-version: '1.22.3'
2 changes: 1 addition & 1 deletion src/go.mod
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/segments/golang_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 950c608

Please sign in to comment.