casbin / xorm-adapter

Xorm adapter for Casbin
https://github.com/casbin/casbin
Apache License 2.0
384 stars 58 forks source link

adjusting names of imported packages #21

Closed suifengtec closed 4 years ago

suifengtec commented 4 years ago

adjusting names of imported packages

hsluoyz commented 4 years ago

@suifengtec No. That v2 is for using Casbin v2.x with Go Modules. It's NOT a typo. See: https://github.com/casbin/xorm-adapter/commit/ebef68566824a8c2980e359cf2401793fe424148

If you encounter a problem, you should solve it in another way.

suifengtec commented 4 years ago

@hsluoyz Use it without Go module, it will throw an error, it will be normal when removed v2,

go get -u github.com/casbin/casbin

try again, the error also throwed , it will disappear only removed the v2 from this package.

Could you help me?

hsluoyz commented 4 years ago

Please use Xorm Adapter v1.0.0: https://github.com/casbin/xorm-adapter/releases/tag/v1.0.0