Skip to content

Commit

Permalink
go-swagger: fix panic
Browse files Browse the repository at this point in the history
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 <[email protected]>
(cherry picked from commit 93f9b90)
Signed-off-by: Sebastiaan van Stijn <[email protected]>
  • Loading branch information
kolyshkin authored and thaJeztah committed Mar 12, 2020
1 parent 075e057 commit fdad168
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,12 @@ RUN set -x \

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

0 comments on commit fdad168

Please sign in to comment.