From d5343cd15e0161ab82f21ea3534994c61b56543a Mon Sep 17 00:00:00 2001 From: Richard Hagen Date: Mon, 11 Dec 2023 12:39:17 +0100 Subject: [PATCH] add required dependencies --- .github/workflows/pr.yaml | 2 +- swaggerui/swagger.go | 35 +++++++++++++++++------------------ 2 files changed, 18 insertions(+), 19 deletions(-) diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index 120e66f9..84aa7d70 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -53,7 +53,7 @@ jobs: - name: Install dependencies run: go mod download - name: Install Swagger - run: go install github.com/go-swagger/go-swagger/cmd/swagger + run: go install github.com/go-swagger/go-swagger/cmd/swagger@v0.30.5 - name: Generate Swagger run: make swagger - name: Validate no changes diff --git a/swaggerui/swagger.go b/swaggerui/swagger.go index 56a87e06..57326d9d 100644 --- a/swaggerui/swagger.go +++ b/swaggerui/swagger.go @@ -3,25 +3,24 @@ package swaggerui import ( "embed" "io/fs" - // Required to include swagger dependencies - _ "github.com/Masterminds/sprig/v3" - _ "github.com/go-openapi/analysis" - _ "github.com/go-openapi/errors" - _ "github.com/go-openapi/inflect" - _ "github.com/go-openapi/loads" - _ "github.com/go-openapi/loads/fmts" - _ "github.com/go-openapi/runtime" - _ "github.com/go-openapi/spec" - _ "github.com/go-openapi/strfmt" - _ "github.com/go-openapi/validate" - _ "github.com/go-swagger/go-swagger" - _ "github.com/jessevdk/go-flags" - _ "github.com/toqueteos/webbrowser" - - _ "github.com/go-swagger/go-swagger/cmd/swagger/commands" - _ "github.com/go-swagger/go-swagger/codescan" - _ "github.com/go-swagger/go-swagger/generator" + // _ "github.com/Masterminds/sprig/v3" + // _ "github.com/go-openapi/analysis" + // _ "github.com/go-openapi/errors" + // _ "github.com/go-openapi/inflect" + // _ "github.com/go-openapi/loads" + // _ "github.com/go-openapi/loads/fmts" + // _ "github.com/go-openapi/runtime" + // _ "github.com/go-openapi/spec" + // _ "github.com/go-openapi/strfmt" + // _ "github.com/go-openapi/validate" + // _ "github.com/go-swagger/go-swagger" + // _ "github.com/jessevdk/go-flags" + // _ "github.com/toqueteos/webbrowser" + // + // _ "github.com/go-swagger/go-swagger/cmd/swagger/commands" + // _ "github.com/go-swagger/go-swagger/codescan" + // _ "github.com/go-swagger/go-swagger/generator" ) //go:embed html