Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

moude name 'CasbinORMAdapter' is different from examples 'CasbinAdapter' #2

Open
conghuhu opened this issue Aug 7, 2022 · 3 comments · May be fixed by #3
Open

moude name 'CasbinORMAdapter' is different from examples 'CasbinAdapter' #2

conghuhu opened this issue Aug 7, 2022 · 3 comments · May be fixed by #3
Assignees
Labels
question Further information is requested

Comments

@conghuhu
Copy link

conghuhu commented Aug 7, 2022

image
In this image, the exported moudle name is 'CasbinORMAdapter', different from examples 'CasbinAdapter'.
I try it in my Centos, will error with 'not found CasbinAdapter module'.
The export name is right?

@hsluoyz
Copy link
Member

hsluoyz commented Aug 7, 2022

@rushitote can you help answer this question?

@hsluoyz hsluoyz self-assigned this Aug 7, 2022
@hsluoyz hsluoyz added the question Further information is requested label Aug 7, 2022
@rushitote
Copy link
Member

You would need to import it by require("CasbinORMAdapter"). Also, I feel the current naming keeps the file name smaller (CasbinAdapter.lua) while still providing the entire name while importing (CasbinORMAdapter). We could change this if needed.

@conghuhu
Copy link
Author

conghuhu commented Aug 7, 2022 via email

@hsluoyz hsluoyz linked a pull request Aug 7, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants