From 9b4c03e312d3c4532f97a89406dd461d122bd045 Mon Sep 17 00:00:00 2001 From: Nikola Jokic Date: Thu, 10 Sep 2026 14:51:38 +0200 Subject: [PATCH] Do not generate a mock for the deepCopyObject constraint lazycopy.go introduces deepCopyObject, a generic type constraint rather than a collaborator, and the package's "all: true" mockery config picks it up and emits a large mock that nothing can use. Switch the package to an explicit include/exclude regex pair so every other interface is still discovered automatically while deepCopyObject is skipped. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- .mockery.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.mockery.yaml b/.mockery.yaml index 4cffec64..57b564a9 100644 --- a/.mockery.yaml +++ b/.mockery.yaml @@ -14,4 +14,8 @@ packages: all: true github.com/actions/actions-runner-controller/controllers/actions.github.com: config: - all: true + all: false + include-interface-regex: ".*" + # deepCopyObject is a generic type constraint, not a collaborator, so it + # must not be mocked. + exclude-interface-regex: "^deepCopyObject$"