diff --git a/.golangci.yml b/.golangci.yml index 991826354d..f6cf44dc6a 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -123,6 +123,8 @@ linters-settings: desc: not allowed, use github.com/tikv/client-go/v2/txnkv - pkg: "github.com/gogo/protobuf" desc: "not allowed, gogo protobuf is deprecated" + - pkg: "github.com/golang/protobuf/proto" + desc: "not allowed, protobuf v1 is deprecated, use google.golang.org/protobuf/proto instead" forbidigo: forbid: - '^time\.Tick$' diff --git a/pkg/streaming/util/message/message_builder_test.go b/pkg/streaming/util/message/message_builder_test.go index f425a18391..94e6f1b821 100644 --- a/pkg/streaming/util/message/message_builder_test.go +++ b/pkg/streaming/util/message/message_builder_test.go @@ -5,8 +5,8 @@ import ( "fmt" "testing" - "github.com/golang/protobuf/proto" "github.com/stretchr/testify/assert" + "google.golang.org/protobuf/proto" "github.com/milvus-io/milvus-proto/go-api/v2/msgpb" "github.com/milvus-io/milvus/pkg/mocks/streaming/util/mock_message" diff --git a/tests/integration/sealpolicies/seal_by_total_growing_test.go b/tests/integration/sealpolicies/seal_by_total_growing_test.go index b049f87a86..d5f8a92440 100644 --- a/tests/integration/sealpolicies/seal_by_total_growing_test.go +++ b/tests/integration/sealpolicies/seal_by_total_growing_test.go @@ -20,9 +20,9 @@ import ( "context" "time" - "github.com/golang/protobuf/proto" "github.com/samber/lo" "go.uber.org/zap" + "google.golang.org/protobuf/proto" "github.com/milvus-io/milvus-proto/go-api/v2/commonpb" "github.com/milvus-io/milvus-proto/go-api/v2/milvuspb"