Skip to content

Commit

Permalink
fix: Support Prue-Go Sqlite driver and Cross platform compile
Browse files Browse the repository at this point in the history
  • Loading branch information
Esonhugh committed Jul 28, 2022
1 parent 91f62d0 commit 3feec39
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 46 deletions.
2 changes: 1 addition & 1 deletion cmd/database/db.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package database

import (
"github.com/glebarez/sqlite"
"github.com/teamssix/cf/pkg/util"
"github.com/teamssix/cf/pkg/util/cmdutil"
"gorm.io/driver/sqlite" // Sqlite driver based on GGO
"gorm.io/gorm"
"os"
"path/filepath"
Expand Down
10 changes: 8 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ require (
github.com/AlecAivazis/survey/v2 v2.3.5
github.com/aliyun/alibaba-cloud-sdk-go v1.61.1685
github.com/aliyun/aliyun-oss-go-sdk v2.2.4+incompatible
github.com/glebarez/sqlite v1.4.6
github.com/gookit/color v1.5.1
github.com/ivanpirog/coloredcobra v1.0.1
github.com/olekukonko/tablewriter v0.0.5
Expand All @@ -20,13 +21,14 @@ require (
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/tat v1.0.447
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/vpc v1.0.446
github.com/x-cray/logrus-prefixed-formatter v0.5.2
gorm.io/driver/sqlite v1.3.6
gorm.io/gorm v1.23.8
)

require (
github.com/baiyubin/aliyun-sts-go-sdk v0.0.0-20180326062324-cfa1a18b161f // indirect
github.com/fatih/color v1.13.0 // indirect
github.com/glebarez/go-sqlite v1.17.3 // indirect
github.com/google/uuid v1.3.0 // indirect
github.com/inconshreveable/mousetrap v1.0.0 // indirect
github.com/jinzhu/inflection v1.0.0 // indirect
github.com/jinzhu/now v1.1.5 // indirect
Expand All @@ -36,13 +38,13 @@ require (
github.com/mattn/go-colorable v0.1.9 // indirect
github.com/mattn/go-isatty v0.0.14 // indirect
github.com/mattn/go-runewidth v0.0.13 // indirect
github.com/mattn/go-sqlite3 v1.14.12 // indirect
github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b // indirect
github.com/mitchellh/colorstring v0.0.0-20190213212951-d06e56a500db // indirect
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.1 // indirect
github.com/onsi/ginkgo v1.16.5 // indirect
github.com/onsi/gomega v1.20.0 // indirect
github.com/remyoudompheng/bigfft v0.0.0-20200410134404-eec4a21b6bb0 // indirect
github.com/rivo/uniseg v0.2.0 // indirect
github.com/satori/go.uuid v1.2.0 // indirect
github.com/spf13/pflag v1.0.5 // indirect
Expand All @@ -53,4 +55,8 @@ require (
golang.org/x/text v0.3.7 // indirect
golang.org/x/time v0.0.0-20220609170525-579cf78fd858 // indirect
gopkg.in/ini.v1 v1.66.2 // indirect
modernc.org/libc v1.16.8 // indirect
modernc.org/mathutil v1.4.1 // indirect
modernc.org/memory v1.1.1 // indirect
modernc.org/sqlite v1.17.3 // indirect
)
Loading

0 comments on commit 3feec39

Please sign in to comment.