Remove dependency on CGO

This commit changes the SQLite dependency to one that does not depend on
CGO. It uses a C-to-Go translated sqlite library that is Pure go.
This commit is contained in:
Kristoffer Dalby 2022-02-22 16:18:25 +00:00
parent a37339fa54
commit bfbcea35a0
9 changed files with 192 additions and 298 deletions

2
db.go
View file

@ -3,8 +3,8 @@ package headscale
import (
"errors"
"github.com/glebarez/sqlite"
"gorm.io/driver/postgres"
"gorm.io/driver/sqlite"
"gorm.io/gorm"
"gorm.io/gorm/logger"
)