Files
podman/pkg/api/Makefile
Jan Kaluza 56e555bfc2 api/compat: switch to moby/moby
Replace github.com/docker/docker API imports with github.com/moby/moby
across compat handlers, swagger models, and tests to align with upstream
type definitions.

Fixes: #27536.

Signed-off-by: Jan Kaluza <jkaluza@redhat.com>
2026-03-09 11:09:23 +01:00

16 lines
550 B
Makefile

SWAGGER_OUT ?= swagger.yaml
SWAGGER ?= ../../test/tools/build/swagger
validate: ${SWAGGER_OUT}
$(SWAGGER) validate ${SWAGGER_OUT}
serve: ${SWAGGER_OUT}
$(SWAGGER) serve -F redoc -p=8080 swagger.yaml
.PHONY: ${SWAGGER_OUT}
${SWAGGER_OUT}:
# generate doesn't remove file on error
rm -f ${SWAGGER_OUT}
$(SWAGGER) generate spec -c github.com/containers/podman -x github.com/sigstore/rekor -x github.com/moby/moby/api/types/network -x github.com/docker/docker/api/types/network -x github.com/moby/moby/api -o ${SWAGGER_OUT} -i tags.yaml -w ./ -m