feat: migrate module to protomcp.org/nanorpc#29
Conversation
The configFile option is invalid in VSCode cspell extension. Create symlink .vscode/cspell.json -> ../internal/build/cspell.json to properly configure spell checking. Signed-off-by: Alejandro Mery <amery@apptly.co>
WalkthroughThis change migrates all Go module paths, import statements, documentation references, and configuration files from the Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Possibly related issues
Poem
Note ⚡️ Unit Test Generation is now available in beta!Learn more here, or try it out under "Finishing Touches" below. 📜 Recent review detailsConfiguration used: CodeRabbit UI ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (35)
✅ Files skipped from review due to trivial changes (32)
🚧 Files skipped from review as they are similar to previous changes (3)
✨ Finishing Touches
🧪 Generate unit tests
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨No code suggestions found for the PR. |
There was a problem hiding this comment.
Actionable comments posted: 2
🔭 Outside diff range comments (1)
.vscode/cspell.json (1)
1-54: Invalid JSON breaks CSpell integrationThe file begins with a stray relative path and is missing an opening brace. VS Code will fail to load this config.
Fix by replacing the current contents with a minimal wrapper that merely extends the shared config:
-../internal/build/cspell.json - "$schema": "https://raw.githubusercontent.com/streetsidesoftware/cspell/main/cspell.schema.json", - "version": "0.2", - "language": "en-GB", - "words": [ - /* … large block omitted … */ - ], - "ignorePaths": [ - /* … */ - ] -} +{ + "$schema": "https://raw.githubusercontent.com/streetsidesoftware/cspell/main/cspell.schema.json", + "extends": ["../internal/build/cspell.json"] +}
🧹 Nitpick comments (2)
pkg/nanorpc/README.md (1)
255-260: Update Codecov badge & URL to new org pathImport paths were migrated, but the Codecov badge still points to the old
ameryrepo. This will break coverage links once the fork is archived.-[codecov-badge]: https://codecov.io/gh/amery/nanorpc/branch/main/graph/badge.svg?flag=nanorpc -[codecov-url]: https://codecov.io/gh/amery/nanorpc?flag=nanorpc +[codecov-badge]: https://codecov.io/gh/protomcp/nanorpc/branch/main/graph/badge.svg?flag=nanorpc +[codecov-url]: https://codecov.io/gh/protomcp/nanorpc?flag=nanorpcpkg/nanorpc/server/README.md (1)
305-310: Codecov badge still references deprecated repositoryFor consistency with the migration, update the Codecov links:
-[codecov-badge]: https://codecov.io/gh/amery/nanorpc/branch/main/graph/badge.svg -[codecov-url]: https://codecov.io/gh/amery/nanorpc +[codecov-badge]: https://codecov.io/gh/protomcp/nanorpc/branch/main/graph/badge.svg +[codecov-url]: https://codecov.io/gh/protomcp/nanorpc
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
⛔ Files ignored due to path filters (1)
pkg/nanorpc/nanorpc.pb.gois excluded by!**/*.pb.go
📒 Files selected for processing (37)
.vscode/cspell.json(1 hunks).vscode/settings.json(1 hunks)AGENT.md(1 hunks)README.md(1 hunks)go.mod(1 hunks)internal/build/cspell.json(1 hunks)pkg/generator/go.mod(1 hunks)pkg/nanopb/go.mod(1 hunks)pkg/nanorpc/README.md(3 hunks)pkg/nanorpc/client/README.md(2 hunks)pkg/nanorpc/client/client.go(1 hunks)pkg/nanorpc/client/config.go(1 hunks)pkg/nanorpc/client/config_test.go(1 hunks)pkg/nanorpc/client/logger.go(1 hunks)pkg/nanorpc/client/logger_test.go(1 hunks)pkg/nanorpc/client/request.go(1 hunks)pkg/nanorpc/client/request_counter_test.go(1 hunks)pkg/nanorpc/client/request_test.go(1 hunks)pkg/nanorpc/client/session.go(1 hunks)pkg/nanorpc/common/fields_test.go(1 hunks)pkg/nanorpc/doc.go(1 hunks)pkg/nanorpc/go.mod(3 hunks)pkg/nanorpc/server/README.md(6 hunks)pkg/nanorpc/server/example_handlers_test.go(1 hunks)pkg/nanorpc/server/handler.go(1 hunks)pkg/nanorpc/server/handler_request_test.go(1 hunks)pkg/nanorpc/server/handler_test.go(1 hunks)pkg/nanorpc/server/interfaces.go(1 hunks)pkg/nanorpc/server/logger.go(1 hunks)pkg/nanorpc/server/logger_test.go(1 hunks)pkg/nanorpc/server/request_context.go(1 hunks)pkg/nanorpc/server/request_context_test.go(1 hunks)pkg/nanorpc/server/server.go(1 hunks)pkg/nanorpc/server/server_test.go(1 hunks)pkg/nanorpc/server/session.go(1 hunks)pkg/nanorpc/server/session_manager.go(1 hunks)pkg/nanorpc/server/session_test.go(1 hunks)
🧰 Additional context used
📓 Path-based instructions (5)
**/*.md
📄 CodeRabbit Inference Engine (AGENT.md)
**/*.md: Markdown files must be checked with markdownlint and cspell before committing
Markdown files must follow 80-character line length as per markdownlint.json
Spell checking must be performed on documentation and code using cspell
Grammar checking for Markdown files must be performed using languagetool
Files:
README.mdAGENT.mdpkg/nanorpc/client/README.mdpkg/nanorpc/server/README.mdpkg/nanorpc/README.md
**/*
📄 CodeRabbit Inference Engine (AGENT.md)
Whitespace fixing and EOF handling are automated for all files
Files:
README.mdAGENT.mdpkg/generator/go.modpkg/nanorpc/client/config.gopkg/nanorpc/server/server_test.gointernal/build/cspell.jsonpkg/nanorpc/server/handler.gopkg/nanorpc/client/logger_test.gopkg/nanorpc/server/handler_request_test.gopkg/nanopb/go.modpkg/nanorpc/server/logger.gopkg/nanorpc/client/request.gopkg/nanorpc/server/session_test.gopkg/nanorpc/server/example_handlers_test.gopkg/nanorpc/server/interfaces.gopkg/nanorpc/client/client.gopkg/nanorpc/server/request_context.gopkg/nanorpc/client/README.mdpkg/nanorpc/client/logger.gopkg/nanorpc/server/request_context_test.gopkg/nanorpc/server/logger_test.gopkg/nanorpc/server/session.gopkg/nanorpc/server/server.gopkg/nanorpc/server/session_manager.gopkg/nanorpc/server/handler_test.gogo.modpkg/nanorpc/doc.gopkg/nanorpc/common/fields_test.gopkg/nanorpc/go.modpkg/nanorpc/client/config_test.gopkg/nanorpc/client/session.gopkg/nanorpc/server/README.mdpkg/nanorpc/client/request_counter_test.gopkg/nanorpc/README.mdpkg/nanorpc/client/request_test.go
**/*.go
📄 CodeRabbit Inference Engine (AGENT.md)
**/*.go: All public APIs must be documented
Go code formatting and whitespace clean-up must be performed before committing
Go code must follow standard Go conventions and formatting
Comprehensive linting via golangci-lint and revive must be applied to Go code
Go code must be linted with golangci-lint and revive
Files:
pkg/nanorpc/client/config.gopkg/nanorpc/server/server_test.gopkg/nanorpc/server/handler.gopkg/nanorpc/client/logger_test.gopkg/nanorpc/server/handler_request_test.gopkg/nanorpc/server/logger.gopkg/nanorpc/client/request.gopkg/nanorpc/server/session_test.gopkg/nanorpc/server/example_handlers_test.gopkg/nanorpc/server/interfaces.gopkg/nanorpc/client/client.gopkg/nanorpc/server/request_context.gopkg/nanorpc/client/logger.gopkg/nanorpc/server/request_context_test.gopkg/nanorpc/server/logger_test.gopkg/nanorpc/server/session.gopkg/nanorpc/server/server.gopkg/nanorpc/server/session_manager.gopkg/nanorpc/server/handler_test.gopkg/nanorpc/doc.gopkg/nanorpc/common/fields_test.gopkg/nanorpc/client/config_test.gopkg/nanorpc/client/session.gopkg/nanorpc/client/request_counter_test.gopkg/nanorpc/client/request_test.go
**/*_test.go
📄 CodeRabbit Inference Engine (AGENT.md)
Table-driven tests are preferred for comprehensive coverage
Files:
pkg/nanorpc/server/server_test.gopkg/nanorpc/client/logger_test.gopkg/nanorpc/server/handler_request_test.gopkg/nanorpc/server/session_test.gopkg/nanorpc/server/example_handlers_test.gopkg/nanorpc/server/request_context_test.gopkg/nanorpc/server/logger_test.gopkg/nanorpc/server/handler_test.gopkg/nanorpc/common/fields_test.gopkg/nanorpc/client/config_test.gopkg/nanorpc/client/request_counter_test.gopkg/nanorpc/client/request_test.go
internal/build/*
📄 CodeRabbit Inference Engine (AGENT.md)
Tool configurations are stored in
internal/build/
Files:
internal/build/cspell.json
🔇 Additional comments (35)
README.md (1)
109-110: Codecov badge URL updated correctlyThe badge and target link now reference
protomcp/nanorpcand stay within the markdown-lint 80-char limit. No further changes needed.internal/build/cspell.json (1)
31-32: Dictionary extended with new organisation tokensAdding “PROTOMCP” / “protomcp” avoids false positives from cspell – looks good.
pkg/nanorpc/client/README.md (2)
20-21: Import path updated to vanity domainThe example now imports
protomcp.org/nanorpc/pkg/nanorpc/client, matching the new module path.
160-162: Test-utility imports updatedBoth
clientandtestutilspaths point to the new domain; examples will compile once the vanity import is live.go.mod (1)
5-9: Replace directives look correctLocal replaces were adjusted to the new module path and should resolve properly.
pkg/nanorpc/client/config.go (1)
14-15: Import path migration looks correctThe alias remains
nanorpc, so no downstream changes are needed.pkg/nanorpc/server/session_test.go (1)
9-10: Test import updated correctlyNo functional changes—tests should continue to pass.
pkg/nanorpc/server/interfaces.go (1)
9-10: Server interface file import updated correctlyNo further action required.
AGENT.md (1)
64-66: Path update looks goodThe root-module reference now matches the new vanity import. No further issues spotted in the touched lines.
pkg/nanopb/go.mod (1)
1-1: Module path change acknowledged
module protomcp.org/nanorpc/pkg/nanopbis consistent with the migration.
Rungo mod tidy(ormake tidy) once more after the merge to ensure indirect dependencies are re-pruned.pkg/nanorpc/common/fields_test.go (1)
9-9: Import path switched correctlyThe test utility import now targets the new module; nothing else changed.
pkg/nanorpc/server/request_context.go (1)
10-10: Import path switched correctlyServer code compiles against the migrated proto package; no additional action needed.
pkg/nanorpc/server/handler_request_test.go (1)
7-7: Import path successfully migratedThe path now points at the new vanity domain and compiles cleanly. No other changes needed.
pkg/nanorpc/server/handler.go (1)
9-9: Import path update is correctMatches the new module root; the rest of the file remains untouched.
pkg/nanorpc/client/logger_test.go (1)
10-10: Test dependency path updatedUpdate aligns with the organisation-wide migration; build and tests should continue to pass.
pkg/nanorpc/server/server_test.go (1)
9-9: Server test imports migratedNothing else changed—good to go.
.vscode/settings.json (1)
2-2: Minor VS Code settings tweak acknowledgedOnly the language setting remains. No action required.
pkg/nanorpc/server/logger.go (1)
8-8: Import path migrated to vanity domain – LGTM
commonnow resolves viaprotomcp.org/nanorpc/.... Assuminggo mod tidywas executed, nothing else to flag.pkg/nanorpc/server/request_context_test.go (1)
10-10: Test import updated correctlyThe test suite now points to the new module path. ✅
pkg/nanorpc/server/session_manager.go (1)
11-11: Session-manager import switched to vanity pathChange is minimal and accurate. Ensure
goimports/revivepass.pkg/nanorpc/server/server.go (1)
13-13: Consistent import migration
commonhelper now referenced viaprotomcp.org. No further action.pkg/nanorpc/client/request.go (1)
9-10: Client imports migration verified – no lingering issues
Rango mod tidy && go vet ./…; both completed without errors (aside from a benign sandbox telemetry warning). The new module paths download correctly and there are no stale references remaining.pkg/nanorpc/server/example_handlers_test.go (2)
7-8: Imports correctly migrated to protomcp.orgThe updated import paths match the new module vanity domain, no other adjustments required.
7-8: No stalegithub.com/amery/nanorpcimports detectedA repository-wide search (
rg -n '"github\.com/amery/nanorpc' --glob '*.go') returned no matches, confirming that all old module paths have been updated.pkg/nanorpc/client/client.go (1)
13-15: Client package imports updated — looks goodThe switch to the new vanity import path is correct and preserves existing behaviour.
pkg/nanorpc/client/session.go (1)
15-17: Session package imports updated — looks goodImport rewrites compile cleanly; no additional action needed.
pkg/nanorpc/client/logger.go (1)
9-9: Logger helper import updated — looks goodSingle-line path change aligns with module migration.
pkg/nanorpc/client/request_counter_test.go (1)
6-6: Testutils import migrated successfullyThe test file now references the correct package location; unit tests should continue to pass.
pkg/nanorpc/server/session.go (1)
16-19: Imports correctly migrated to vanity domainThe updated import paths point to
protomcp.org/nanorpc/..., matching the module migration objective. No additional adjustments required.pkg/nanorpc/client/config_test.go (1)
11-13: Test imports updated to new module pathPaths now reference
protomcp.org/nanorpc/...; build will resolve against the updatedgo.mod. Looks good.pkg/nanorpc/doc.go (1)
11-12: Documentation links updatedReferences in the package comment now reflect the new vanity import location. No further action required.
pkg/nanorpc/server/logger_test.go (1)
9-10: Import paths migratedTest file imports updated successfully; no other changes identified.
pkg/nanorpc/client/request_test.go (1)
6-7: Import paths updatedPackage references switched to the
protomcp.orgdomain. Compile-time resolution should succeed.pkg/nanorpc/server/handler_test.go (1)
7-8: Import-path migration looks correctThe paths now reference the new vanity domain and match the module rename. Nothing else in this hunk needs attention.
pkg/nanorpc/go.mod (1)
1-32: ✔ No straygithub.com/amery/nanorpcimports found
Ranrg -n 'github\.com/amery/nanorpc'across the repo and confirmed zero matches—there are no leftover references to the old module path.
Update all import paths, module declarations, and documentation references from github.com/amery/nanorpc to protomcp.org/nanorpc. This implements the migration plan from issue #25 to move the repository to the protomcp organization with canonical vanity imports. Signed-off-by: Alejandro Mery <amery@apptly.co>
19fd485 to
08793f6
Compare
User description
Summary
Implements the module migration plan from issue #25 to move the repository from
github.com/amery/nanorpcto the protomcp organization with canonical vanity imports atprotomcp.org/nanorpc.Changes Made
protomcp.org/nanorpcVerification
make tidysucceeds with no issuesNext Steps
After this PR is merged:
github.com/amery/nanorpcrepository can be forked back with deprecation noticeRelated to #25
PR Type
Other
Description
Migrate module from
github.com/amery/nanorpctoprotomcp.org/nanorpcUpdate all import paths across 39 Go files
Update documentation and badge references
Fix VSCode cspell configuration with symlink
Diagram Walkthrough
File Walkthrough
Summary by CodeRabbit
Documentation
Chores
Style