From acc378bad29a7eabf04294f1416e0c00d4812449 Mon Sep 17 00:00:00 2001 From: Luke Hinds Date: Tue, 29 Nov 2022 09:07:15 +0000 Subject: [PATCH 1/2] Update to go version 1.19, as 1.16 is EOL The current version of the driver is 1.16 which went EOL Feb 2021 This upgrades to 1.19 and also configures CI to retrospectively test back to 1.18 (1.17 is EOL). This will give test coverage for all actively supported go versions. --- .github/workflows/go-driver.yml | 5 ++++- drivers/golang/go.mod | 8 +++++++- drivers/golang/go.sum | 1 + 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/go-driver.yml b/.github/workflows/go-driver.yml index 52febad64..25fcf770a 100644 --- a/.github/workflows/go-driver.yml +++ b/.github/workflows/go-driver.yml @@ -11,6 +11,9 @@ on: jobs: build: runs-on: ubuntu-latest + strategy: + matrix: + go-version: [ '1.18', '1.19' ] defaults: run: working-directory: drivers/golang/age/ @@ -24,7 +27,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v3 with: - go-version: 1.16 + go-version: ${{ matrix.go-version }} - name: Build run: go build -v ./... diff --git a/drivers/golang/go.mod b/drivers/golang/go.mod index 81525d66f..a6bd74bd6 100644 --- a/drivers/golang/go.mod +++ b/drivers/golang/go.mod @@ -19,10 +19,16 @@ module github.com/apache/age/drivers/golang -go 1.16 +go 1.19 require ( github.com/antlr/antlr4/runtime/Go/antlr v0.0.0-20210521184019-c5ad59b459ec github.com/lib/pq v1.10.2 github.com/stretchr/testify v1.7.0 ) + +require ( + github.com/davecgh/go-spew v1.1.0 // indirect + github.com/pmezard/go-difflib v1.0.0 // indirect + gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c // indirect +) diff --git a/drivers/golang/go.sum b/drivers/golang/go.sum index 13a472eb9..89d1775ed 100644 --- a/drivers/golang/go.sum +++ b/drivers/golang/go.sum @@ -9,6 +9,7 @@ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZN github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY= github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= From 1215ccef64c7436d9c91d45587811d7846df7be1 Mon Sep 17 00:00:00 2001 From: Luke Hinds Date: Tue, 29 Nov 2022 09:13:20 +0000 Subject: [PATCH 2/2] Also update readme go version --- drivers/golang/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/golang/README.md b/drivers/golang/README.md index 1d58fa6cf..4433212cf 100644 --- a/drivers/golang/README.md +++ b/drivers/golang/README.md @@ -7,7 +7,7 @@ AGType parser and driver support for [Apache AGE](https://age.apache.org/), grap * Cypher query support for 3rd. Party sql driver (enables to use cypher queries directly) ### Prerequisites -* over Go 1.16 +* over Go 1.18 / 1.19 * This module runs on golang standard api [database/sql](https://golang.org/pkg/database/sql/) and [antlr4-python3](https://github.com/antlr/antlr4/tree/master/runtime/Go/antlr)