swagger icon indicating copy to clipboard operation
swagger copied to clipboard

The module value in the go.mod is wrong

Open wechasing opened this issue 3 years ago • 4 comments

In the release: v12.2.0-alpha2 , the value in the go.mod is module github.com/iris-contrib/swagger

should it be module github.com/iris-contrib/swagger/v12 ?

I can not download it in my project with go mod with error:

go: github.com/iris-contrib/swagger/[email protected]: go.mod has non-.../v12 module path "github.com/iris-contrib/swagger" (and .../v12/go.mod does not exist) at revision v12.2.0-alpha2

wechasing avatar Mar 22 '21 09:03 wechasing

Same as me, Does any one know how to fix it?

Vealcoo avatar Dec 05 '22 03:12 Vealcoo

I have the same issue

MuhmdHsn313 avatar Dec 07 '22 07:12 MuhmdHsn313

@wechasing @Vealcoo @MuhmdHsn313 please try it:

go get github.com/kataras/iris/v12@master
go get github.com/iris-contrib/swagger@master
go mod tidy -compat=1.19

kataras avatar Dec 24 '22 05:12 kataras

It doesn't work. I want the latest version (v12.2.0 as of today). I get this packages in go mod instead:

  • github.com/iris-contrib/swagger v0.0.0-20230820002204-56b041d3471a
  • github.com/iris-contrib/swagger/v12 v12.2.0-alpha
  • github.com/kataras/iris/v12 v12.2.5-0.20230817092616-b30cbdbcb308
  • github.com/swaggo/swag v1.8.10

filippo-veneri avatar Sep 13 '23 13:09 filippo-veneri