fix: use /v2 module path#139
Merged
hrntknr merged 1 commit intosigbit:mainfrom Apr 13, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the repository to comply with Go module major-version suffix rules by moving the module path to github.com/sigbit/mcp-auth-proxy/v2 and aligning internal imports accordingly.
Changes:
- Changed
go.modmodule path togithub.com/sigbit/mcp-auth-proxy/v2. - Updated internal Go imports across packages and tests to use the
/v2module path. - Updated contributor/agent guidance to reflect the new local import prefix.
Reviewed changes
Copilot reviewed 11 out of 11 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| pkg/repository/sql.go | Switches internal models import to the /v2 module path. |
| pkg/repository/kvs.go | Switches internal models import to the /v2 module path. |
| pkg/mcp-proxy/main.go | Updates internal package imports (auth, backend, idp, etc.) to /v2. |
| pkg/mcp-proxy/main_test.go | Updates proxy import to /v2 for tests. |
| pkg/idp/idp.go | Updates internal imports (auth, repository, utils) to /v2. |
| pkg/idp/idp_test.go | Updates internal imports used by IDP tests to /v2. |
| pkg/auth/github.go | Updates internal utils import to /v2. |
| pkg/auth/auth.go | Updates internal utils import to /v2. |
| main.go | Updates mcp-proxy package import alias to /v2. |
| go.mod | Sets module path to /v2 to satisfy Go’s major versioning requirements. |
| AGENTS.md | Updates import-order guidance to reference the /v2 local import prefix. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
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.
Summary
Update the module path to
github.com/sigbit/mcp-auth-proxy/v2and switch internal imports to the/v2path.This is required by Go's module versioning rules: starting with
v2, the module path must include the major version suffix, or commands such asgo installwill reject the version. Go Modules ReferenceType of Change
Related Issues