Skip to content

Commit 7ad721c

Browse files
wudidapaopaoclaude
andcommitted
fix: use /v2 module path for v2 release (#39)
The v2.0.0 tag cannot be consumed by the Go toolchain because its go.mod module path lacks the required major-version suffix. Go's semantic import versioning mandates that modules tagged v2.0.0+ declare the major version in the module path. Update the module path to github.com/chdb-io/chdb-go/v2 and rewrite all internal imports, doc examples, and the `go install` instruction to the /v2 path. Real GitHub URLs (issues/blob/actions) are left untouched. After merging, cut a v2.0.1 tag so consumers can depend on it via `go get github.com/chdb-io/chdb-go/v2`. Fixes #39 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 6b595b8 commit 7ad721c

14 files changed

Lines changed: 20 additions & 20 deletions

‎README.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
### Install chdb-go
1717
1. Install `chdb-go`
18-
- `go install github.com/chdb-io/chdb-go@latest`
18+
- `go install github.com/chdb-io/chdb-go/v2@latest`
1919
2. Run `chdb-go` with or without persistent `--path`
2020
- run `$GOPATH/bin/chdb-go`
2121

@@ -55,7 +55,7 @@ import (
5555
"os"
5656
"path/filepath"
5757

58-
"github.com/chdb-io/chdb-go/chdb"
58+
"github.com/chdb-io/chdb-go/v2/chdb"
5959
)
6060

6161
func main() {
@@ -102,7 +102,7 @@ import (
102102
"database/sql"
103103
"log"
104104

105-
_ "github.com/chdb-io/chdb-go/chdb/driver"
105+
_ "github.com/chdb-io/chdb-go/v2/chdb/driver"
106106
)
107107

108108
func main() {

‎chdb.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# chdb
44

55
```go
6-
import "github.com/chdb-io/chdb-go/chdb"
6+
import "github.com/chdb-io/chdb-go/v2/chdb"
77
```
88

99
## Index

‎chdb/doc.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# chdb
44

55
```go
6-
import "github.com/chdb-io/chdb-go/chdb"
6+
import "github.com/chdb-io/chdb-go/v2/chdb"
77
```
88

99
## Index

‎chdb/driver/driver.go‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import (
1010
"strconv"
1111
"strings"
1212

13-
"github.com/chdb-io/chdb-go/chdb"
14-
chdbpurego "github.com/chdb-io/chdb-go/chdb-purego"
13+
"github.com/chdb-io/chdb-go/v2/chdb"
14+
chdbpurego "github.com/chdb-io/chdb-go/v2/chdb-purego"
1515
"github.com/huandu/go-sqlbuilder"
1616
"github.com/parquet-go/parquet-go"
1717
)

‎chdb/driver/driver_open_test.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"database/sql"
55
"testing"
66

7-
"github.com/chdb-io/chdb-go/chdb"
7+
"github.com/chdb-io/chdb-go/v2/chdb"
88
)
99

1010
// TestDriverOpenNoKeeperLeak verifies that the legacy Driver.Open path does not

‎chdb/driver/driver_test.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"testing"
1010
"time"
1111

12-
"github.com/chdb-io/chdb-go/chdb"
12+
"github.com/chdb-io/chdb-go/v2/chdb"
1313
)
1414

1515
var (

‎chdb/driver/parquet.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99

1010
"reflect"
1111

12-
chdbpurego "github.com/chdb-io/chdb-go/chdb-purego"
12+
chdbpurego "github.com/chdb-io/chdb-go/v2/chdb-purego"
1313
"github.com/parquet-go/parquet-go"
1414
)
1515

‎chdb/driver/parquet_rows_internal_test.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"io"
66
"testing"
77

8-
chdbpurego "github.com/chdb-io/chdb-go/chdb-purego"
8+
chdbpurego "github.com/chdb-io/chdb-go/v2/chdb-purego"
99
"github.com/parquet-go/parquet-go"
1010
)
1111

‎chdb/driver/parquet_streaming.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99

1010
"reflect"
1111

12-
chdbpurego "github.com/chdb-io/chdb-go/chdb-purego"
12+
chdbpurego "github.com/chdb-io/chdb-go/v2/chdb-purego"
1313
"github.com/parquet-go/parquet-go"
1414
)
1515

‎chdb/session.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"strings"
88
"sync"
99

10-
chdbpurego "github.com/chdb-io/chdb-go/chdb-purego"
10+
chdbpurego "github.com/chdb-io/chdb-go/v2/chdb-purego"
1111
)
1212

1313
// chDB embeds a single ClickHouse engine (EmbeddedServer) per process: the

0 commit comments

Comments
 (0)