From a1385f6216f705e9cede148d3792a3f7173e75ea Mon Sep 17 00:00:00 2001 From: Tim Ross Date: Wed, 11 Dec 2024 14:57:56 -0500 Subject: [PATCH] Prevent github.com/cloudflare/cfssl from being imported Updates the depguard rules to deny the dependency in favor of using crypto or x/crypto and their subpackages instead. --- .golangci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.golangci.yml b/.golangci.yml index 30bbb975728ff..2300891f36ec0 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -113,6 +113,8 @@ linters-settings: desc: 'use "golang.org/x/mod/semver" or "coreos/go-semver/semver" instead' - pkg: github.com/microsoftgraph/msgraph-sdk-go desc: 'use "github.com/gravitational/teleport/lib/msgraph" instead' + - pkg: github.com/cloudflare/cfssl + desc: 'use "crypto" or "x/crypto" instead' # Prevent logrus from being imported by api and e. Once everything in teleport has been converted # to use log/slog this should be moved into the main block above. logrus: