-
-
Notifications
You must be signed in to change notification settings - Fork 211
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
Application build failed #44
Comments
It seems that this PR: 57a0c40 has caused this issue. @L1ghtman2k can you fix it? |
@elissa2333 Have you started getting the above error only recently? In my setup I always had gcc on windows, so I have never encountered that issue. According to https://github.com/mattn/go-sqlite3#installation, the package requires gcc to be installed, since You can find the solution for windows here: @hsluoyz, I am not sure if this could be labeled as bug, since that is a requirement of a library gorm depends on(Unless there are some workarounds around cgo libraries that doesn't require gcc). |
@L1ghtman2k can we remove the dependency on: https://github.com/mattn/go-sqlite3 ? I know this adapter supports sqlite, but let's not add it to the code directly. Or comment it, people who need it can uncomment to enable the feature. This is classified as a bug because Casbin is supposed to work on Windows, Linux, macOS without special setup like gcc or cgo. Looking forward to the PR! |
Oh, got it. My impression was that @elissa2333 was trying to utilize sqlite library, I will make the PR |
Thank you for your answer. Encountered an error while upgrading v3. My program only supports MySQL Postgres |
@elissa2333 fixed by commit: 007a8c0 Released v3.0.2: https://github.com/casbin/gorm-adapter/releases/tag/v3.0.2 |
version:
github.com/casbin/gorm-adapter/v3 v3.0.1
log :
The build fails under Windows because I have not installed gcc and cannot build qlite3
Rely on explanation
go mod why github.com/mattn/go-sqlite3
The text was updated successfully, but these errors were encountered: