Skip to content

Commit ad5d74d

Browse files
authored
Update to ginkgo v2 (#753)
1 parent 72f1145 commit ad5d74d

26 files changed

+32
-28
lines changed

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,18 @@ GOBIN ?= $(GOPATH)/bin
1212
GOLINT ?= $(GOBIN)/golint
1313
GOSEC ?= $(GOBIN)/gosec
1414
GINKGO ?= $(GOBIN)/ginkgo
15-
GO_VERSION = 1.15
15+
GO_VERSION = 1.17
1616

1717
default:
1818
$(MAKE) build
1919

2020
install-test-deps:
21-
$(GO_NOMOD) get -u github.com/onsi/ginkgo/ginkgo
21+
go install github.com/onsi/ginkgo/v2/ginkgo@latest
2222
$(GO_NOMOD) get -u golang.org/x/crypto/ssh
2323
$(GO_NOMOD) get -u github.com/lib/pq
2424

2525
test: install-test-deps build fmt lint sec
26-
$(GINKGO) -r -v
26+
$(GINKGO) -v --fail-fast
2727

2828
fmt:
2929
@echo "FORMATTING"

analyzer_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"os"
88
"strings"
99

10-
. "github.com/onsi/ginkgo"
10+
. "github.com/onsi/ginkgo/v2"
1111
. "github.com/onsi/gomega"
1212
"github.com/securego/gosec/v2"
1313
"github.com/securego/gosec/v2/rules"

call_list_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package gosec_test
33
import (
44
"go/ast"
55

6-
. "github.com/onsi/ginkgo"
6+
. "github.com/onsi/ginkgo/v2"
77
. "github.com/onsi/gomega"
88
"github.com/securego/gosec/v2"
99
"github.com/securego/gosec/v2/testutils"

cmd/gosec/sort_issues_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package main
33
import (
44
"testing"
55

6-
. "github.com/onsi/ginkgo"
6+
. "github.com/onsi/ginkgo/v2"
77
. "github.com/onsi/gomega"
88
"github.com/securego/gosec/v2"
99
)

cmd/tlsconfig/tls_version_go12_go13.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//go:build go1.12 && !go1.14
12
// +build go1.12,!go1.14
23

34
// This file can be removed once go1.13 is no longer supported

config_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"bytes"
55
"strings"
66

7-
. "github.com/onsi/ginkgo"
7+
. "github.com/onsi/ginkgo/v2"
88
. "github.com/onsi/gomega"
99
"github.com/securego/gosec/v2"
1010
)

cwe/cwe_suite_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package cwe_test
33
import (
44
"testing"
55

6-
. "github.com/onsi/ginkgo"
6+
. "github.com/onsi/ginkgo/v2"
77
. "github.com/onsi/gomega"
88
)
99

cwe/data_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package cwe_test
22

33
import (
4-
. "github.com/onsi/ginkgo"
4+
. "github.com/onsi/ginkgo/v2"
55
. "github.com/onsi/gomega"
66
"github.com/securego/gosec/v2/cwe"
77
)

cwe/types_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package cwe_test
22

33
import (
4-
. "github.com/onsi/ginkgo"
4+
. "github.com/onsi/ginkgo/v2"
55
. "github.com/onsi/gomega"
66
"github.com/securego/gosec/v2/cwe"
77
)

flag_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"flag"
55
"os"
66

7-
. "github.com/onsi/ginkgo"
7+
. "github.com/onsi/ginkgo/v2"
88
. "github.com/onsi/gomega"
99
"github.com/securego/gosec/v2/cmd/vflag"
1010
)

0 commit comments

Comments
 (0)