Skip to content

Commit

Permalink
add required dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard87 committed Dec 11, 2023
1 parent 5f34c36 commit b61030d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
35 changes: 17 additions & 18 deletions swaggerui/swagger.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b61030d

Please sign in to comment.