Repository: calcite-avatica-go Updated Branches: refs/heads/master 5d398eec9 -> 5d719fab1
[CALCITE-2335] Update code snippets and development documentation to use Go modules import paths Project: http://git-wip-us.apache.org/repos/asf/calcite-avatica-go/repo Commit: http://git-wip-us.apache.org/repos/asf/calcite-avatica-go/commit/5d719fab Tree: http://git-wip-us.apache.org/repos/asf/calcite-avatica-go/tree/5d719fab Diff: http://git-wip-us.apache.org/repos/asf/calcite-avatica-go/diff/5d719fab Branch: refs/heads/master Commit: 5d719fab1ff8528f049c8fbad343af34af84a912 Parents: 5d398ee Author: Francis Chuang <[email protected]> Authored: Wed Aug 29 20:58:03 2018 +1000 Committer: Francis Chuang <[email protected]> Committed: Wed Aug 29 20:58:03 2018 +1000 ---------------------------------------------------------------------- README.md | 2 +- site/_docs/go_client_reference.md | 2 +- site/develop/avatica-go.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/calcite-avatica-go/blob/5d719fab/README.md ---------------------------------------------------------------------- diff --git a/README.md b/README.md index 60a9e45..5b32d36 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ The Phoenix/Avatica driver implements Go's `database/sql/driver` interface, so, ``` import "database/sql" -import _ "github.com/apache/calcite-avatica-go" +import _ "github.com/apache/calcite-avatica-go/v3" db, err := sql.Open("avatica", "http://localhost:8765") ``` http://git-wip-us.apache.org/repos/asf/calcite-avatica-go/blob/5d719fab/site/_docs/go_client_reference.md ---------------------------------------------------------------------- diff --git a/site/_docs/go_client_reference.md b/site/_docs/go_client_reference.md index c5c4ec2..28dde4e 100644 --- a/site/_docs/go_client_reference.md +++ b/site/_docs/go_client_reference.md @@ -55,7 +55,7 @@ The Avatica Go driver implements Go's `database/sql/driver` interface, so, impor {% highlight go %} import "database/sql" -import _ "github.com/apache/calcite-avatica-go" +import _ "github.com/apache/calcite-avatica-go/v3" db, err := sql.Open("avatica", "http://localhost:8765") {% endhighlight %} http://git-wip-us.apache.org/repos/asf/calcite-avatica-go/blob/5d719fab/site/develop/avatica-go.md ---------------------------------------------------------------------- diff --git a/site/develop/avatica-go.md b/site/develop/avatica-go.md index f7e8bce..330477b 100644 --- a/site/develop/avatica-go.md +++ b/site/develop/avatica-go.md @@ -70,7 +70,7 @@ PHOENIX_HOST: http://phoenix:8765 If you have not set up a GPG signing key, set one up by following these [instructions](https://www.apache.org/dev/openpgp.html#generate-key). If this release is a new major version (we are releasing 4.0.0 vs the current version 3.0.0), update the version in the -import path in `go.mod`. +import path in `go.mod`. The import paths in the various sample code snippets should also be updated. Since we need to support Go modules, tags must be prefixed with a `v`. For example, tag as `v3.1.0` rather than `3.1.0`.
