From d4a3dbb721637a7c6200b9d644aefeb37e5578dc Mon Sep 17 00:00:00 2001 From: Jan De Dobbeleer Date: Fri, 7 Oct 2022 21:23:20 +0200 Subject: [PATCH] chore: default to go 1.19 --- .github/workflows/code.yml | 2 +- .github/workflows/gomod.yml | 2 +- src/go.mod | 2 +- src/segments/golang_test.go | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/code.yml b/.github/workflows/code.yml index 72674528..b98f966d 100644 --- a/.github/workflows/code.yml +++ b/.github/workflows/code.yml @@ -22,7 +22,7 @@ jobs: - name: Install Go uses: actions/setup-go@268d8c0ca0432bb2cf416faae41297df9d262d7f with: - go-version: 1.18 + go-version: 1.19 - name: Checkout code uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 - name: Golang CI diff --git a/.github/workflows/gomod.yml b/.github/workflows/gomod.yml index a9e647d8..4053b049 100644 --- a/.github/workflows/gomod.yml +++ b/.github/workflows/gomod.yml @@ -12,7 +12,7 @@ jobs: - name: Install Go uses: actions/setup-go@268d8c0ca0432bb2cf416faae41297df9d262d7f with: - go-version: 1.18 + go-version: 1.19 - name: Checkout code uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 - name: Check for unused dependencies diff --git a/src/go.mod b/src/go.mod index 32d79e54..cfe09dd0 100644 --- a/src/go.mod +++ b/src/go.mod @@ -1,6 +1,6 @@ module oh-my-posh -go 1.18 +go 1.19 require ( github.com/Azure/go-ansiterm v0.0.0-20210617225240-d185dfc1b5a1 diff --git a/src/segments/golang_test.go b/src/segments/golang_test.go index ef4941d4..6d3fdf94 100644 --- a/src/segments/golang_test.go +++ b/src/segments/golang_test.go @@ -46,7 +46,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.18", ParseModFile: true, HasModFileInParentDir: true, ExpectedString: "1.18"}, + {Case: "go.mod 1.19", ParseModFile: true, HasModFileInParentDir: true, ExpectedString: "1.19"}, {Case: "no go.mod file fallback", ParseModFile: true, ExpectedString: "1.16", Version: "go version go1.16 darwin/amd64"}, { Case: "invalid go.mod file fallback",