You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, tools like go mod tidy or if someone tried go get github.com/kataras/[email protected] will fail after go 1.13 because it does not contain the version suffix.
The second solution one is to increment the major version, replace and keep updating all import paths inside Iris and iris-contrib/middleware, iris-contrib/examples and e.t.c. to github.com/kataras/iris/v12 (see the version suffix, which can be a git branch or tag of this repository).
$ go get github.com/kataras/iris@v12
This should download the latest tagged version of v12.
People have spoken, after 23 days, poll comes to its end. Thank you all so much for your interest and your contribution.
The next release of Iris will be used as import "github.com/kataras/iris/v12" , go get github.com/kataras/iris/[email protected] and require github.com/kataras/iris/v12 v12.0.1 inside go.mod. The installation section, examples and middleware repositories are updated too.
Repository owner
locked as resolved and limited conversation to collaborators
Oct 26, 2019
Hello Iris Community,
As you know the Go Team released the go modules.
There are two opened issues:
I would like to have your opinion on a serious subject about the import path. There are two ways to fix the above.
The first one is to keep the same import path and do:
This will add a pseudo-version inside your project's
go.mod
:The import paths inside your program should look like that:
However, tools like
go mod tidy
or if someone triedgo get github.com/kataras/[email protected]
will fail aftergo 1.13
because it does not contain the version suffix.The second solution one is to increment the major version, replace and keep updating all import paths inside Iris and iris-contrib/middleware, iris-contrib/examples and e.t.c. to
github.com/kataras/iris/v12
(see the version suffix, which can be a git branch or tag of this repository).This should download the latest tagged version of
v12
.The
go.mod
can look like that:There are several downsides of changing the import path, as it is a huge breaking change but in the same time it's the standard Go's way nowadays.
Please think of it and vote up what you would like to happen here.
Yours,
Gerasimos Maropoulos, Author of Iris.
The text was updated successfully, but these errors were encountered: