mirror of
https://github.com/containers/podman.git
synced 2025-10-24 15:03:45 +08:00
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:
8
Makefile
8
Makefile
@ -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:
|
||||
|
||||
Reference in New Issue
Block a user