Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: upgrade to go 1.20 #2650

Merged
merged 1 commit into from
May 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/e2e-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ jobs:
echo "environment-kubeconfig:" ${KUBECONFIG}

- name: Set up Go
uses: actions/setup-go@v2
uses: actions/setup-go@v3
with:
go-version: 1.19
go-version: "1.20"

- name: Build devspacehelper
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
steps:
- uses: actions/setup-go@v3
with:
go-version: 1.19
go-version: "1.20"
- uses: actions/checkout@v3
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v3.2.0
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ jobs:
runs-on: macos-11
steps:
- name: Set up Go
uses: actions/setup-go@v1
uses: actions/setup-go@v3
with:
go-version: 1.19
go-version: "1.20"
- id: get_version
run: |
RELEASE_VERSION=$(echo $GITHUB_REF | sed -nE 's!refs/tags/!!p')
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/unit-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ jobs:

steps:
- name: Set up Go
uses: actions/setup-go@v1
uses: actions/setup-go@v3
with:
go-version: 1.19
go-version: "1.20"

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

steps:
- name: Set up Go
uses: actions/setup-go@v1
uses: actions/setup-go@v3
with:
go-version: 1.19
go-version: "1.20"

- name: Check out code into the Go module directory
uses: actions/checkout@v1
Expand Down
5 changes: 1 addition & 4 deletions e2e/e2e_suite_test.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
package e2e

import (
"github.com/onsi/ginkgo/v2"
"math/rand"
"testing"
"time"

"github.com/onsi/ginkgo/v2"
"github.com/onsi/gomega"

// Register tests
Expand Down Expand Up @@ -37,7 +35,6 @@ import (
// generated in this directory, and cluster logs will also be saved.
// This function is called on each Ginkgo node in parallel mode.
func TestRunE2ETests(t *testing.T) {
rand.Seed(time.Now().UTC().UnixNano())
gomega.RegisterFailHandler(ginkgo.Fail)
ginkgo.RunSpecs(t, "DevSpace e2e suite")
}
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/loft-sh/devspace

go 1.19
go 1.20

require (
github.com/AlecAivazis/survey/v2 v2.3.2
Expand Down
4 changes: 0 additions & 4 deletions helper/main.go
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
package main

import (
"math/rand"
"time"

"github.com/loft-sh/devspace/helper/cmd"
)

func main() {
rand.Seed(time.Now().UTC().UnixNano())
cmd.Execute()
}
3 changes: 0 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
package main

import (
"math/rand"
"os"
"time"

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

Expand All @@ -14,7 +12,6 @@ import (
var version = ""

func main() {
rand.Seed(time.Now().UTC().UnixNano())
upgrade.SetVersion(version)

cmd.Execute()
Expand Down