Comments (6)
It seems that this PR: 57a0c40 has caused this issue. @L1ghtman2k can you fix it?
from gorm-adapter.
@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 go-sqlite3 is cgo package
You can find the solution for windows here:
According to mattn/go-sqlite3#467
@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).
from gorm-adapter.
@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!
from gorm-adapter.
Oh, got it. My impression was that @elissa2333 was trying to utilize sqlite library, I will make the PR
from gorm-adapter.
@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
go-sqlite3 is cgo package
You can find the solution for windows here:
According to mattn/go-sqlite3#467@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).
Thank you for your answer. Encountered an error while upgrading v3. My program only supports MySQL Postgres
from gorm-adapter.
@elissa2333 fixed by commit: 007a8c0
Released v3.0.2: https://github.com/casbin/gorm-adapter/releases/tag/v3.0.2
from gorm-adapter.
Related Issues (20)
- is it appropriate to use a Dbadapter per-request? HOT 3
- MYSQL engine MyISM index maximum limit 1000 HOT 6
- How do I use transaction ? HOT 7
- Loading multiple policy types. HOT 3
- change default v7 to v5 HOT 9
- [Proposal] customizability CasbinRule structure HOT 2
- question: dbspecified not works when specify dbname in dsn HOT 4
- [bug] Resolver mysql HOT 5
- there is a problem with the processing of error HOT 2
- Support SQL Server in gorm-adapter HOT 1
- [suggest]No physical deletion HOT 2
- [feature] create if not exist for Update APIs HOT 6
- "accessible by" feature for ORM integrations HOT 4
- Support for connection pools HOT 4
- Adapter Transaction db table can not set HOT 2
- why not use Transaction to SavePolicy HOT 6
- Understanding how to correctly update policies in a database HOT 4
- [Question] Handle to handle policy_definition has more than 6 items HOT 4
- How to setup a casbin watcher along with the the Gorm adapter HOT 4
- Add GetImplicitUsersForResourceByDomain() API HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gorm-adapter.