diff --git a/.github/workflows/lint-dashboards.yaml b/.github/workflows/lint-dashboards.yaml index af175341..1260e028 100644 --- a/.github/workflows/lint-dashboards.yaml +++ b/.github/workflows/lint-dashboards.yaml @@ -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: | diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 85138dd2..1aa510f6 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -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: diff --git a/go.mod b/go.mod index 49194faa..cc2ed0be 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/fission/fission -go 1.19 +go 1.20 require ( github.com/Shopify/sarama v1.37.2 diff --git a/pkg/executor/executor_test.go b/pkg/executor/executor_test.go index ef92491e..85adc594 100644 --- a/pkg/executor/executor_test.go +++ b/pkg/executor/executor_test.go @@ -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) diff --git a/pkg/router/functionHandler.go b/pkg/router/functionHandler.go index 47cf3a04..6e5639f5 100644 --- a/pkg/router/functionHandler.go +++ b/pkg/router/functionHandler.go @@ -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 }