Skip to content

RDDT: rename Go client module to github.com/reddit/milvus/client/v2 - #33

Open
c-i-njoroge wants to merge 1 commit into
reddit/v2.6.18from
charles-njoroge/client-module-rename
Open

RDDT: rename Go client module to github.com/reddit/milvus/client/v2#33
c-i-njoroge wants to merge 1 commit into
reddit/v2.6.18from
charles-njoroge/client-module-rename

Conversation

@c-i-njoroge

@c-i-njoroge c-i-njoroge commented Aug 13, 2026

Copy link
Copy Markdown
Collaborator

Lets consumers use the internal milvus fork

Closes https://reddit.slack.com/archives/C0ATLKU4PCY/p1786570525956869

💸 TL;DR

Renames this fork's Go client module from github.com/milvus-io/milvus/client/v2 to
github.com/reddit/milvus/client/v2.

What is changing

  • client/go.mod declares the new module path; the require/replace pairs in the root
    and tests/go_client modules follow it.
  • The import path is updated across 130 files. Every changed line in a .go file is the
    module path itself — there are no other edits.
  • The three .golangci.yml files add github.com/reddit as a local import prefix. Without
    this, gci classifies the client's own imports as third-party, which fails lint.
  • Adds _typos.toml. The typos hook only sees files staged in a commit, so on a rename
    this wide it renamed exported identifiers in some files but not their declarations in
    others, producing code that does not compile. The config documents why each spelling is
    intentional : RaBitQ is a real algorithm whose name is the wire value "IVF_RABITQ",
    WithPartitons is a deprecated alias whose "fix" collides with the existing
    WithPartitions, and speficy appears in server error strings asserted by e2e tests.

How it was tested

  • client: builds, vets, and all 7 test packages pass.
  • tests/go_client: vets clean.
  • Root module: resolves the renamed client via ./client, and internal/cdc/cluster
    (the one root-module file touched) builds.
  • Lint, using the same invocations as make static-check: client, tests/go_client,
    and internal/cdc/cluster all report 0 issues.
  • Full root-module lint was not run locally it requires the C++ core
    (.golangci.yml sets build-tags: [dynamic, test], pulling in #cgo pkg-config: milvus_core). CI covers it via make verifiers.

📜 Details

Design Doc

Jira

🧪 Testing Steps / Validation

✅ Checks

  • CI tests (if present) are passing
  • Adheres to code style for repo
  • Contributor License Agreement (CLA) completed if not a Reddit employee

Lets consumers require the fork directly, instead of every repo carrying
a replace directive that Go only honors in the main module.

Co-authored-by: Cursor <cursoragent@cursor.com>
@c-i-njoroge
c-i-njoroge marked this pull request as ready for review August 13, 2026 03:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant