Skip to content

Conversation

divinerapier
Copy link
Contributor

Changes

Updated the go.mod file to include the /v2 suffix in the module path, following Go Modules versioning requirements (i.e., module github.com/apache/iotdb-client-go/v2).
This change ensures that users can correctly fetch v2+ versions using go get github.com/apache/iotdb-client-go/v2, and prevents dependency issues caused by an incorrect module path.

Fix #131

Motivation

According to Go Modules best practices, when the major version is v2 or higher, the module path must include the /v2 suffix. Omitting this leads to problems with dependency management and import resolution.
With this fix, users can properly import and upgrade to v2+ versions of the SDK as recommended by the Go team.

Impact

This change only affects the go.mod file and import paths; there are no functional code changes.
Downstream users depending on v2+ of this project will need to update their import paths to github.com/apache/iotdb-client-go/v2.

References

Go Modules: Version Numbers

@shuwenwei
Copy link
Member

Some files are generated by thrift and the Makefile(https://github.com/apache/iotdb-client-go/blob/main/Makefile) also needs to be modified.
截屏2025-06-18 17 32 19

Signed-off-by: divinerapier <sihao.fang@outlook.com>
@divinerapier
Copy link
Contributor Author

@shuwenwei

截屏2025-06-20 09 48 59

PTAL, Makefile was updated and e2e test is ok. Thanks.

@shuwenwei shuwenwei merged commit 84f8e6e into apache:main Jun 20, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

gomod pasing failed
2 participants