From 54e1c4b3a6f4ef3a3462a2fb795c4490f545b699 Mon Sep 17 00:00:00 2001 From: Dan Laine Date: Fri, 11 Aug 2023 14:06:35 -0400 Subject: [PATCH] make linter fail if old mock lib is used --- .golangci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.golangci.yml b/.golangci.yml index f37d1fc53f78..8ab0e89502d1 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -57,6 +57,7 @@ linters-settings: packages-with-error-message: - io/ioutil: 'io/ioutil is deprecated. Use package io or os instead.' - github.com/stretchr/testify/assert: 'github.com/stretchr/testify/require should be used instead.' + - github.com/golang/mock/gomock: 'go.uber.org/mock/gomock should be used instead.' include-go-root: true errorlint: # Check for plain type assertions and type switches.