fix: use /v2 module path so v2 is consumable as a Go module (#39) - #40
Merged
Conversation
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>
Contributor
Author
|
@chibugai, review this PR. |
chibugai
reviewed
Jul 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Fixes #39.
The
v2.0.0tag can't be consumed by the Go toolchain because itsgo.modmodule path lacks the required major-version suffix:Go's semantic import versioning requires that modules tagged
v2.0.0+declare the major version in the module path (github.com/chdb-io/chdb-go/v2). Sincev0/v1share the unsuffixed path, this never came up before the v2 bump.Changes
go.mod:module github.com/chdb-io/chdb-go→module github.com/chdb-io/chdb-go/v2.../chdband.../chdb-puregoto the/v2pathREADME.md,chdb.md,chdb/doc.md,lowApi.mdgo install github.com/chdb-io/chdb-go/v2@latestinstruction/issues/,/blob/,/actions/) untouchedVerification
Follow-up (maintainer action)
This corrects the source, but the broken
v2.0.0tag remains. After merging, please cut a new patch tag so consumers can depend on it:Then
go get github.com/chdb-io/chdb-go/v2@v2.0.1will work.Note
Update module path to
github.com/chdb-io/chdb-go/v2for Go semantic import versioningUpdates go.mod module declaration and all internal import paths across the repository to use the
/v2suffix, making the v2 release consumable as a proper Go module. Documentation and example snippets in README and API docs are also updated to reflect the new import paths.Macroscope summarized 7ad721c.