Update Go version 1.20 (#2740)
* Update Go version 1.20 * Update golangci-lint version v1.51.1 Signed-off-by: Sanket Sudake <sanketsudake@gmail.com>
This commit is contained in:
@@ -24,7 +24,7 @@ jobs:
|
|||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@v3
|
uses: actions/setup-go@v3
|
||||||
with:
|
with:
|
||||||
go-version: 1.18.5
|
go-version-file: "go.mod"
|
||||||
|
|
||||||
- name: Install dashboard linter
|
- name: Install dashboard linter
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ on:
|
|||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
env:
|
env:
|
||||||
GOLANGCI_LINT_VERSION: v1.50.1
|
GOLANGCI_LINT_VERSION: v1.51.1
|
||||||
GOLANGCI_LINT_TIMEOUT: 5m
|
GOLANGCI_LINT_TIMEOUT: 5m
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
module github.com/fission/fission
|
module github.com/fission/fission
|
||||||
|
|
||||||
go 1.19
|
go 1.20
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/Shopify/sarama v1.37.2
|
github.com/Shopify/sarama v1.37.2
|
||||||
|
|||||||
@@ -101,7 +101,6 @@ func createSvc(ctx context.Context, kubeClient kubernetes.Interface, ns string,
|
|||||||
func TestExecutor(t *testing.T) {
|
func TestExecutor(t *testing.T) {
|
||||||
// run in a random namespace so we can have concurrent tests
|
// run in a random namespace so we can have concurrent tests
|
||||||
// on a given cluster
|
// on a given cluster
|
||||||
rand.Seed(time.Now().UTC().UnixNano())
|
|
||||||
testID := rand.Intn(999)
|
testID := rand.Intn(999)
|
||||||
fissionNs := fmt.Sprintf("test-%v", testID)
|
fissionNs := fmt.Sprintf("test-%v", testID)
|
||||||
functionNs := fmt.Sprintf("test-function-%v", testID)
|
functionNs := fmt.Sprintf("test-function-%v", testID)
|
||||||
|
|||||||
@@ -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 {
|
func (w *fakeCloseReadCloser) Close() error {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user