Skip to content

Commit 110e1b1

Browse files
committedMay 26, 2023
chore: upgrade to go 1.20
Signed-off-by: Russell Centanni <[email protected]>
1 parent dbfd584 commit 110e1b1

File tree

8 files changed

+11
-21
lines changed

8 files changed

+11
-21
lines changed
 

‎.github/workflows/e2e-tests.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ jobs:
4141
echo "environment-kubeconfig:" ${KUBECONFIG}
4242
4343
- name: Set up Go
44-
uses: actions/setup-go@v2
44+
uses: actions/setup-go@v3
4545
with:
46-
go-version: 1.19
46+
go-version: "1.20"
4747

4848
- name: Build devspacehelper
4949
run: |

‎.github/workflows/lint.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
steps:
2020
- uses: actions/setup-go@v3
2121
with:
22-
go-version: 1.19
22+
go-version: "1.20"
2323
- uses: actions/checkout@v3
2424
- name: Run golangci-lint
2525
uses: golangci/golangci-lint-action@v3.2.0

‎.github/workflows/release.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@ jobs:
5959
runs-on: macos-11
6060
steps:
6161
- name: Set up Go
62-
uses: actions/setup-go@v1
62+
uses: actions/setup-go@v3
6363
with:
64-
go-version: 1.19
64+
go-version: "1.20"
6565
- id: get_version
6666
run: |
6767
RELEASE_VERSION=$(echo $GITHUB_REF | sed -nE 's!refs/tags/!!p')

‎.github/workflows/unit-tests.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ jobs:
2727

2828
steps:
2929
- name: Set up Go
30-
uses: actions/setup-go@v1
30+
uses: actions/setup-go@v3
3131
with:
32-
go-version: 1.19
32+
go-version: "1.20"
3333

3434
- name: Check out code into the Go module directory
3535
uses: actions/checkout@v1
@@ -43,9 +43,9 @@ jobs:
4343

4444
steps:
4545
- name: Set up Go
46-
uses: actions/setup-go@v1
46+
uses: actions/setup-go@v3
4747
with:
48-
go-version: 1.19
48+
go-version: "1.20"
4949

5050
- name: Check out code into the Go module directory
5151
uses: actions/checkout@v1

‎e2e/e2e_suite_test.go

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
package e2e
22

33
import (
4-
"github.com/onsi/ginkgo/v2"
5-
"math/rand"
64
"testing"
7-
"time"
85

6+
"github.com/onsi/ginkgo/v2"
97
"github.com/onsi/gomega"
108

119
// Register tests
@@ -37,7 +35,6 @@ import (
3735
// generated in this directory, and cluster logs will also be saved.
3836
// This function is called on each Ginkgo node in parallel mode.
3937
func TestRunE2ETests(t *testing.T) {
40-
rand.Seed(time.Now().UTC().UnixNano())
4138
gomega.RegisterFailHandler(ginkgo.Fail)
4239
ginkgo.RunSpecs(t, "DevSpace e2e suite")
4340
}

‎go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/loft-sh/devspace
22

3-
go 1.19
3+
go 1.20
44

55
require (
66
github.com/AlecAivazis/survey/v2 v2.3.2

‎helper/main.go

-4
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
11
package main
22

33
import (
4-
"math/rand"
5-
"time"
6-
74
"github.com/loft-sh/devspace/helper/cmd"
85
)
96

107
func main() {
11-
rand.Seed(time.Now().UTC().UnixNano())
128
cmd.Execute()
139
}

‎main.go

-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
package main
22

33
import (
4-
"math/rand"
54
"os"
6-
"time"
75

86
_ "k8s.io/client-go/plugin/pkg/client/auth"
97

@@ -14,7 +12,6 @@ import (
1412
var version = ""
1513

1614
func main() {
17-
rand.Seed(time.Now().UTC().UnixNano())
1815
upgrade.SetVersion(version)
1916

2017
cmd.Execute()

0 commit comments

Comments
 (0)
Please sign in to comment.