Closed mrchar closed 4 years ago
go.mod
module authorization
go 1.13
require (
github.com/casbin/casbin v1.9.1
github.com/casbin/casbin/v2 v2.1.2
github.com/casbin/xorm-adapter v1.0.0
github.com/go-sql-driver/mysql v1.4.1
github.com/go-xorm/xorm v0.7.9 // indirect
google.golang.org/appengine v1.6.5 // indirect
)
I guess it's because xorm-adapter v2's go.mod incorrectly declares the module as xorm-adapter.
Can you make a PR to fix it?
@nodece
do NOT work, fix please
import "github.com/casbin/xorm-adapter/v2"
cannot load github.com/casbin/xorm-adapter/v2: cannot find module providing package github.com/casbin/xorm-adapter/v2
@fengjihua can you make a fix PR?
@hsluoyz can not fix with commit, maybe you should add a new tag like 2.0.1.
Released: https://github.com/casbin/xorm-adapter/releases/tag/v2.0.1
work like a charm! awesome!