-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## Problem We made a mistake when releasing the previous `v2.X.X` of the Go client. In order to handle major versions properly, the Go module ecosystem requires that packages include a `/vX` path for major versions. This needs to be represented in the `go.mod` file for the module. See https://go.dev/doc/modules/version-numbers under "Major version". Without making this change to the `go.mod` file, when attempting to install >v2.x.x, you end up with an error: ``` go get -u github.com/pinecone-io/go-pinecone/[email protected] go: github.com/pinecone-io/go-pinecone/[email protected]: github.com/pinecone-io/[email protected]: invalid version: module contains a go.mod file, so module path must match major version ("github.com/pinecone-io/go-pinecone/v2") ``` ## Solution - Update `go.mod` for v2 -> `module github.com/pinecone-io/go-pinecone/v2`. - Update places where we're importing from `github.com/pinecone-io/go-pinecone/internal` to `github.com/pinecone-io/go-pinecone/v2/internal`. ## Type of Change - [ ] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [X] Breaking change (fix or feature that would cause existing functionality to not work as expected) - [ ] This change requires a documentation update - [ ] Infrastructure change (CI configs, etc) - [ ] Non-code change (docs, etc) - [ ] None of the above: (explain here) ## Test Plan We need to tag and release a new `v2.2.0` to test that this works as expected. Testing against previous 2.x.x releases is hampered by the fact that the `go.mod` file is incorrect.
- Loading branch information
1 parent
af29d07
commit dd9d543
Showing
9 changed files
with
48 additions
and
58 deletions.
There are no files selected for viewing
This file contains 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
Submodule apis
updated
from 39e90e to 934bd7
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
module github.com/pinecone-io/go-pinecone | ||
module github.com/pinecone-io/go-pinecone/v2 | ||
|
||
go 1.21 | ||
|
||
|
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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