Repository: JanDeDobbeleer/oh-my-posh
Pull request #3555 (2023-03-04 15:39:52)

chore: build with go1.20.1
chore: build with go1.20.1



Patch:
diff --git a/.github/workflows/code.yml b/.github/workflows/code.yml
index 44cf3d11..6ed6dde4 100644
--- a/.github/workflows/code.yml
+++ b/.github/workflows/code.yml
@@ -22,7 +22,7 @@ jobs:
     - name: Install Go
       uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568
       with:
-        go-version: 1.19
+        go-version: 1.20.1
     - name: Checkout code
       uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c
     - name: Golang CI
diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml
index 4f7fa8a8..347c7885 100644
--- a/.github/workflows/codeql.yml
+++ b/.github/workflows/codeql.yml
@@ -22,7 +22,7 @@ jobs:
     - name: Install Go
       uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568
       with:
-        go-version: 1.18
+        go-version: 1.20.1
     - name: Checkout code
       uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c
     - name: Initialize CodeQL
diff --git a/.github/workflows/composite/bootstrap-go/action.yml b/.github/workflows/composite/bootstrap-go/action.yml
index e48c6045..ced5bd79 100644
--- a/.github/workflows/composite/bootstrap-go/action.yml
+++ b/.github/workflows/composite/bootstrap-go/action.yml
@@ -9,7 +9,7 @@ runs:
   steps:
     - name: Install Go 🚀
       env:
-        VERSION: "1.19.6"
+        VERSION: "1.20.1"
       shell: pwsh
       run: |
         # Delete conflicting go versions first
diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml
index c75cefe9..71faa10d 100644
--- a/.github/workflows/docs.yml
+++ b/.github/workflows/docs.yml
@@ -20,7 +20,7 @@ jobs:
       - name: Install Go
         uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568
         with:
-          go-version: 1.18
+          go-version: 1.20.1
       - uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c
         with:
           node-version: 17.6.0
diff --git a/.github/workflows/gomod.yml b/.github/workflows/gomod.yml
index 8c8141a0..f9fa0dbf 100644
--- a/.github/workflows/gomod.yml
+++ b/.github/workflows/gomod.yml
@@ -12,7 +12,7 @@ jobs:
     - name: Install Go
       uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568
       with:
-        go-version: 1.19
+        go-version: 1.20.1
     - name: Checkout code
       uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c
     - name: Check for unused dependencies
diff --git a/src/go.mod b/src/go.mod
index 62a51e2b..b8a453ca 100644
--- a/src/go.mod
+++ b/src/go.mod
@@ -1,6 +1,6 @@
 module github.com/jandedobbeleer/oh-my-posh/src
 
-go 1.19
+go 1.20
 
 require (
 	github.com/Azure/go-ansiterm v0.0.0-20230124172434-306776ec8161


Test patch:
diff --git a/src/segments/golang_test.go b/src/segments/golang_test.go
index 7667cbe7..7c94b0af 100644
--- a/src/segments/golang_test.go
+++ b/src/segments/golang_test.go
@@ -47,7 +47,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.19", ParseModFile: true, HasModFileInParentDir: true, ExpectedString: "1.19"},
+		{Case: "go.mod 1.20", ParseModFile: true, HasModFileInParentDir: true, ExpectedString: "1.20"},
 		{Case: "no go.mod file fallback", ParseModFile: true, ExpectedString: "1.16", Version: "go version go1.16 darwin/amd64"},
 		{
 			Case:                  "invalid go.mod file fallback",