Skip to content

Commit

Permalink
Update Go version 1.20 (#2740)
Browse files Browse the repository at this point in the history
* Update Go version 1.20
* Update golangci-lint version v1.51.1

Signed-off-by: Sanket Sudake <sanketsudake@gmail.com>
  • Loading branch information
sanketsudake committed Mar 12, 2023
1 parent a93e9b4 commit a96b92f
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint-dashboards.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.18.5
go-version-file: "go.mod"

- name: Install dashboard linter
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 @@ -18,7 +18,7 @@ on:
workflow_dispatch:

env:
GOLANGCI_LINT_VERSION: v1.50.1
GOLANGCI_LINT_VERSION: v1.51.1
GOLANGCI_LINT_TIMEOUT: 5m

jobs:
Expand Down
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/fission/fission

go 1.19
go 1.20

require (
github.com/Shopify/sarama v1.37.2
Expand Down
1 change: 0 additions & 1 deletion pkg/executor/executor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ func createSvc(ctx context.Context, kubeClient kubernetes.Interface, ns string,
func TestExecutor(t *testing.T) {
// run in a random namespace so we can have concurrent tests
// on a given cluster
rand.Seed(time.Now().UTC().UnixNano())
testID := rand.Intn(999)
fissionNs := fmt.Sprintf("test-%v", testID)
functionNs := fmt.Sprintf("test-function-%v", testID)
Expand Down
5 changes: 0 additions & 5 deletions pkg/router/functionHandler.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,6 @@ type (
}
)

func init() {
// just seeding the random number for getting the canary function
rand.Seed(time.Now().UnixNano())
}

func (w *fakeCloseReadCloser) Close() error {
return nil
}
Expand Down

0 comments on commit a96b92f

Please sign in to comment.