install swagger from source

First of all this removes the need for a network connection, second
renovate can update the version as it is tracked in go.mod.

However the real important part is that the binary downloads are
broken[1]. For some reason the swagger created with them does not
include all the type information for the examples. However when building
from source the same thing works fine.

[1] https://github.com/go-swagger/go-swagger/issues/2842

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
Paul Holzinger
2024-04-12 13:53:42 +02:00
parent f95b9d4e37
commit 5e9725983d
1011 changed files with 247016 additions and 46 deletions

View File

@ -495,7 +495,7 @@ completions: podman podman-remote
### Documentation targets
###
pkg/api/swagger.yaml:
pkg/api/swagger.yaml: .install.swagger
make -C pkg/api
$(MANPAGES_MD_GENERATED): %.md: %.md.in $(MANPAGES_SOURCE_DIR)/options/*.md
@ -974,11 +974,7 @@ install.tools: .install.golangci-lint ## Install needed tools
.PHONY: .install.swagger
.install.swagger:
env VERSION=0.30.5 \
BINDIR=$(BINDIR) \
GOOS=$(GOOS) \
GOARCH=$(GOARCH) \
./hack/install_swagger.sh
$(MAKE) -C test/tools build/swagger
.PHONY: .install.md2man
.install.md2man: