Skip to content
This repository was archived by the owner on Oct 13, 2023. It is now read-only.

Commit c7b3376

Browse files
kolyshkinthaJeztah
authored andcommitted
go-swagger: fix panic
This is an attempt to fix go-swagger panic under Golang 1.13. Details: * go-openapi/jsonpointer#4 * go-swagger/go-swagger#2059 Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com> (cherry picked from commit 93f9b902af89f82367d750aa871d40f25ccd99ca) Signed-off-by: Sebastiaan van Stijn <github@gone.nl> Upstream-commit: fdad16840cca59e1ac2575c4102f146f1df556ee Component: engine
1 parent d69a049 commit c7b3376

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

components/engine/Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,12 @@ RUN set -x \
8080

8181
FROM base AS swagger
8282
# Install go-swagger for validating swagger.yaml
83-
ENV GO_SWAGGER_COMMIT c28258affb0b6251755d92489ef685af8d4ff3eb
83+
# This is https://github.com/kolyshkin/go-swagger/tree/golang-1.13-fix
84+
# TODO: move to under moby/ or fix upstream go-swagger to work for us.
85+
ENV GO_SWAGGER_COMMIT 5793aa66d4b4112c2602c716516e24710e4adbb5
8486
RUN set -x \
8587
&& export GOPATH="$(mktemp -d)" \
86-
&& git clone https://github.com/go-swagger/go-swagger.git "$GOPATH/src/github.com/go-swagger/go-swagger" \
88+
&& git clone https://github.com/kolyshkin/go-swagger.git "$GOPATH/src/github.com/go-swagger/go-swagger" \
8789
&& (cd "$GOPATH/src/github.com/go-swagger/go-swagger" && git checkout -q "$GO_SWAGGER_COMMIT") \
8890
&& go build -o /build/swagger github.com/go-swagger/go-swagger/cmd/swagger \
8991
&& rm -rf "$GOPATH"

0 commit comments

Comments
 (0)