mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-12-28 04:19:41 -08:00
feat(go): upgrade to 1.22.3
This commit is contained in:
parent
4e9f7f9060
commit
950c608939
|
@ -8,7 +8,7 @@
|
||||||
// Update the VARIANT arg to pick a version of Go: 1, 1.16, 1.17
|
// 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.
|
// Append -bullseye or -buster to pin to an OS version.
|
||||||
// Use -bullseye variants on local arm64/Apple Silicon.
|
// Use -bullseye variants on local arm64/Apple Silicon.
|
||||||
"VARIANT": "1-1.22-bullseye",
|
"VARIANT": "1-1.22.3-bullseye",
|
||||||
|
|
||||||
// Options:
|
// Options:
|
||||||
"POSH_THEME": "/workspaces/oh-my-posh/themes/jandedobbeleer.omp.json",
|
"POSH_THEME": "/workspaces/oh-my-posh/themes/jandedobbeleer.omp.json",
|
||||||
|
|
|
@ -9,4 +9,4 @@ runs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
|
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491
|
||||||
with:
|
with:
|
||||||
go-version: '1.22.0'
|
go-version: '1.22.3'
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
module github.com/jandedobbeleer/oh-my-posh/src
|
module github.com/jandedobbeleer/oh-my-posh/src
|
||||||
|
|
||||||
go 1.22.0
|
go 1.22.3
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/Azure/go-ansiterm v0.0.0-20230124172434-306776ec8161
|
github.com/Azure/go-ansiterm v0.0.0-20230124172434-306776ec8161
|
||||||
|
|
|
@ -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.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 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: "no go.mod file fallback", ParseModFile: true, ExpectedString: "1.16", Version: "go version go1.16 darwin/amd64"},
|
||||||
{
|
{
|
||||||
Case: "invalid go.mod file fallback",
|
Case: "invalid go.mod file fallback",
|
||||||
|
|
Loading…
Reference in a new issue