From cce96e24dd05340828d56134fb97328823bcffdb Mon Sep 17 00:00:00 2001 From: rosstimothy <39066650+rosstimothy@users.noreply.github.com> Date: Thu, 12 Dec 2024 08:18:20 -0500 Subject: [PATCH] Prevent github.com/cloudflare/cfssl from being imported (#50089) (#50119) 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 9a824c66d2928..5ddda88a961fa 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -76,6 +76,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 importing internal packages in client tools or packages containing # common interfaces consumed by them that are known to bloat binaries or break builds # because they only support a single platform.