From 6f9bf07a348cb824e0249817812befd54a08ea19 Mon Sep 17 00:00:00 2001 From: Paul Holzinger Date: Fri, 14 Nov 2025 12:26:50 +0100 Subject: [PATCH] swagger: fix for new docker/moby module conflict image got converted to the new docker modules which were finally renamed to moby[1]. Podman however still uses docker so now the swagger lookup seems to find duplicated types which in general breaks the generation so exclude the new module for now until we convert podman and fix the new type issues swagger found. [1] https://github.com/containers/container-libs/pull/459 Signed-off-by: Paul Holzinger --- pkg/api/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/api/Makefile b/pkg/api/Makefile index b784db895e..d0201ffb11 100644 --- a/pkg/api/Makefile +++ b/pkg/api/Makefile @@ -12,4 +12,4 @@ serve: ${SWAGGER_OUT} ${SWAGGER_OUT}: # generate doesn't remove file on error rm -f ${SWAGGER_OUT} - $(SWAGGER) generate spec -x github.com/sigstore/rekor -x github.com/docker/docker/api/types/network -o ${SWAGGER_OUT} -i tags.yaml -w ./ -m + $(SWAGGER) generate spec -x github.com/sigstore/rekor -x github.com/docker/docker/api/types/network -x github.com/moby/moby/api -o ${SWAGGER_OUT} -i tags.yaml -w ./ -m