From b6c76a519e6b275edace6428bef2214e7774f239 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nils=20Gustav=20Str=C3=A5b=C3=B8?= Date: Mon, 7 Aug 2023 10:20:31 +0200 Subject: [PATCH] update go-swagger to 0.30.5 --- Dockerfile | 9 ++------- README.md | 2 +- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index e520283f..81226516 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,13 +6,8 @@ RUN apk update && \ apk add --no-cache gcc musl-dev RUN go install honnef.co/go/tools/cmd/staticcheck@2023.1.3 && \ - go install github.com/rakyll/statik@v0.1.7 - - # Install go-swagger - 28704370=v0.25.0 - get release id from https://api.github.com/repos/go-swagger/go-swagger/releases -RUN download_url=$(curl -s https://api.github.com/repos/go-swagger/go-swagger/releases/28704370 | \ - jq -r '.assets[] | select(.name | contains("'"$(uname | tr '[:upper:]' '[:lower:]')"'_amd64")) | .browser_download_url') && \ - curl -o /usr/local/bin/swagger -L'#' "$download_url" && \ - chmod +x /usr/local/bin/swagger + go install github.com/rakyll/statik@v0.1.7 && \ + go install github.com/go-swagger/go-swagger/cmd/swagger@v0.30.5 WORKDIR /go/src/github.com/equinor/radix-api/ diff --git a/README.md b/README.md index d4ed5216..774b834e 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ You need Go installed. Make sure `GOPATH` and `GOROOT` are properly set up. Also needed: -- [`go-swagger`](https://github.com/go-swagger/go-swagger) (on a Mac, you can install it with Homebrew: `brew install go-swagger`) +- [`go-swagger`](https://github.com/go-swagger/go-swagger) (install with `go install github.com/go-swagger/go-swagger/cmd/swagger@v0.30.5`.) - [`statik`](https://github.com/rakyll/statik) (install with `go install github.com/rakyll/statik@v0.1.7`) - [`gomock`](https://github.com/golang/mock) (install with `go install github.com/golang/mock/mockgen@v1.6.0`)