From 271087a63b8a6a3e23dc6bc88b248792535a748a Mon Sep 17 00:00:00 2001 From: Arjan Topolovec Date: Fri, 17 Jul 2020 14:07:37 +0200 Subject: [PATCH] Allow compilation of neo4j support without CGO. Since 1.8.0 neo4j driver no longer requires CGO. --- database/neo4j/neo4j.go | 1 - go.mod | 2 +- go.sum | 2 ++ 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/database/neo4j/neo4j.go b/database/neo4j/neo4j.go index 0dd749d1e..7796412af 100644 --- a/database/neo4j/neo4j.go +++ b/database/neo4j/neo4j.go @@ -1,7 +1,6 @@ package neo4j import ( - "C" // import C so that we can't compile with CGO_ENABLED=0 "bytes" "fmt" "io" diff --git a/go.mod b/go.mod index aa1a95c11..0728767fd 100644 --- a/go.mod +++ b/go.mod @@ -31,7 +31,7 @@ require ( github.com/markbates/pkger v0.15.1 github.com/mattn/go-sqlite3 v1.10.0 github.com/nakagami/firebirdsql v0.0.0-20190310045651-3c02a58cfed8 - github.com/neo4j/neo4j-go-driver v1.8.0-beta02 + github.com/neo4j/neo4j-go-driver v1.8.0 github.com/snowflakedb/gosnowflake v1.3.5 github.com/stretchr/testify v1.5.1 github.com/tidwall/pretty v0.0.0-20180105212114-65a9db5fad51 // indirect diff --git a/go.sum b/go.sum index c7f6c2e47..c40642882 100644 --- a/go.sum +++ b/go.sum @@ -291,6 +291,8 @@ github.com/nakagami/firebirdsql v0.0.0-20190310045651-3c02a58cfed8 h1:P48LjvUQpT github.com/nakagami/firebirdsql v0.0.0-20190310045651-3c02a58cfed8/go.mod h1:86wM1zFnC6/uDBfZGNwB65O+pR2OFi5q/YQaEUid1qA= github.com/neo4j/neo4j-go-driver v1.8.0-beta02 h1:/z/q3q+T/E/oKqp3sGn7Mn1B8DL4JZevXO41hFLsDOE= github.com/neo4j/neo4j-go-driver v1.8.0-beta02/go.mod h1:0A49wIv0oP3uQdnbceK7Kc+snlY5B0F6dmtYArM0ltk= +github.com/neo4j/neo4j-go-driver v1.8.0 h1:YRp9jsFcF9k/AnvbcqFCN9OMeIT2XTJgxOpp2Puq7OE= +github.com/neo4j/neo4j-go-driver v1.8.0/go.mod h1:0A49wIv0oP3uQdnbceK7Kc+snlY5B0F6dmtYArM0ltk= github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= github.com/onsi/ginkgo v1.7.0 h1:WSHQ+IS43OoUrWtD1/bbclrwK8TTH5hzp+umCiuxHgs= github.com/onsi/ginkgo v1.7.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=