darkweak / souin

An HTTP cache system, RFC compliant, compatible with @tyktechnologies, @traefik, @caddyserver, @go-chi, @bnkamalesh, @beego, @devfeel, @labstack, @gofiber, @go-goyave, @go-kratos, @gin-gonic, @roadrunner-server, @zalando, @zeromicro, @nginx and @apache

Home Page:https://docs.souin.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fail to build with go < 1.21

dubo-dubon-duponey opened this issue · comments

#47 0.477 /build/golang-current/source/pkg/mod/github.com/darkweak/souin@v1.6.46/pkg/middleware/middleware.go:9:2: package maps is not in GOROOT (/build/golang-current/go/src/maps)
#47 0.477 /build/golang-current/source/pkg/mod/github.com/darkweak/souin@v1.6.46/pkg/rfc/vary.go:7:2: package slices is not in GOROOT (/build/golang-current/go/src/slices)

Looks like 678a1db introduced dependencies to the go lib that are only available starting with 1.21, but somehow did not update go.mod to reflect that (which still indicates go 1.19).

Hope I am not mistaken here.

Thanks!

Hello @dubo-dubon-duponey I thought I updated the go.mod, will be fixed in the next release.