use new import path for v4 series

This commit is contained in:
Frank Braun 2020-07-23 02:33:59 +00:00
parent 8b29dea77d
commit 0281f43053
6 changed files with 9 additions and 5 deletions

View File

@ -2,6 +2,6 @@ language: go
go: 1.14
before_install:
- go get github.com/frankbraun/gocheck
- go get -t github.com/mutecomm/go-sqlcipher
- go get -t github.com/mutecomm/go-sqlcipher/v4
script:
- gocheck -g -c -e _example -e sqlite3_test

View File

@ -23,6 +23,10 @@ to upgrade existing database files.
See [migrating databases](https://www.zetetic.net/sqlcipher/sqlcipher-api/#Migrating_Databases) for details.
To upgrade your Go code to the 4.x series, change the import path to
"github.com/mutecomm/go-sqlcipher/v4"
### Installation
This package can be installed with the go get command:

View File

@ -6,7 +6,7 @@ import (
"log"
"os"
_ "github.com/mutecomm/go-sqlcipher"
_ "github.com/mutecomm/go-sqlcipher/v4"
)
func main() {

2
go.mod
View File

@ -1,4 +1,4 @@
module github.com/mutecomm/go-sqlcipher
module github.com/mutecomm/go-sqlcipher/v4
go 1.12

View File

@ -13,7 +13,7 @@ import (
"path/filepath"
"testing"
sqlite3 "github.com/mutecomm/go-sqlcipher"
sqlite3 "github.com/mutecomm/go-sqlcipher/v4"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)

View File

@ -18,7 +18,7 @@ import (
"testing"
"time"
"github.com/mutecomm/go-sqlcipher/sqlite3_test"
"github.com/mutecomm/go-sqlcipher/v4/sqlite3_test"
)
func TempFilename(t *testing.T) string {