From 29e057e3548c4eefdf4569083a2814ba96e90191 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Tue, 5 Sep 2023 11:14:56 +0200 Subject: [PATCH] golangci: enforce use of cilium/dns over miekg/dns Commit 95e25bfb1327 ("go.mod, vendor: use github.com/cilium/dns fork directly") switched to use the cilium/dns fork directly instead of using a replace directive. Make sure that future changes don't introduce dependencies on miekg/dns again. Signed-off-by: Tobias Klauser --- .golangci.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.golangci.yaml b/.golangci.yaml index 6ccfe4dae5f89..fa4274efd1e65 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -66,6 +66,10 @@ linters-settings: gomodguard: blocked: modules: + - github.com/miekg/dns: + recommendations: + - github.com/cilium/dns + reason: "use the cilium fork directly to avoid replace directives in go.mod, see https://github.com/cilium/cilium/pull/27582" - gopkg.in/check.v1: recommendations: - testing