Skip to content

Commit

Permalink
Merge pull request #2225 from rudyfly/bugfix
Browse files Browse the repository at this point in the history
bugfix: should use specific version of swagger
  • Loading branch information
fuweid authored Sep 14, 2018
2 parents 9b47561 + d938b63 commit 7400311
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
8 changes: 4 additions & 4 deletions apis/types/registry_service_config.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions hack/codegen/swagger.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -euo pipefail

readonly SWAGGER_VERSION=0.12.0
readonly SWAGGER_VERSION=dev

# swagger::check_version checks the command and the version.
swagger::check_version() {
Expand All @@ -26,8 +26,7 @@ swagger::check_version() {
swagger::install() {
echo ">>>> install swagger-${SWAGGER_VERSION} <<<<"
local url
url="https://github.com/go-swagger/go-swagger/releases/download"
url="${url}/${SWAGGER_VERSION}/swagger_linux_amd64"
url="https://raw.githubusercontent.com/pouchcontainer/tools/master/bin/swagger"

wget --quiet -O /usr/local/bin/swagger "${url}"
chmod +x /usr/local/bin/swagger
Expand Down

0 comments on commit 7400311

Please sign in to comment.