Skip to content

fix: align Go module path with actual GitHub repository - #526

Merged
lizhengfeng101 merged 1 commit into
mainfrom
fix/align-module-path-with-repo
Jul 27, 2026
Merged

lizhengfeng101 merged 1 commit into
mainfrom
fix/align-module-path-with-repo

Conversation

@lizhengfeng101

Copy link
Copy Markdown
Contributor

Summary

  • Change Go module path from github.com/open-code-review/open-code-review to github.com/alibaba/open-code-review to match the actual repository location
  • This fixes pkg.go.dev indexing and Go Report Card resolution
  • Pure mechanical replacement across 78 .go files + go.mod, no logic changes

Test plan

  • make check passes (go vet, gofmt)
  • make test passes (all unit tests)
  • go mod tidy clean
  • Verify pkg.go.dev loads after merge and tag

🤖 Generated with Claude Code

The module path was github.com/open-code-review/open-code-review but the
repo lives at github.com/alibaba/open-code-review. This mismatch prevents
pkg.go.dev indexing and breaks Go Report Card resolution.
@github-actions

Copy link
Copy Markdown
Contributor

✅ OpenCodeReview: No comments generated. Looks good to me.

@css521 css521 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@lizhengfeng101
lizhengfeng101 merged commit 0035d12 into main Jul 27, 2026
11 checks passed
@lizhengfeng101
lizhengfeng101 deleted the fix/align-module-path-with-repo branch July 27, 2026 11:52
kall pushed a commit to kall/open-code-review that referenced this pull request Aug 14, 2026
Three breakage classes from the merge, in one unit because the build does
not compile until all three are fixed:

- Rewrite the old module path to github.com/alibaba/open-code-review in
  core_cmd.go, core_diff.go and core_diff_test.go (alibaba#526).
- Replace the last stale helper call with the model.Diff method the branch
  extracted it into (internal/agent/agent.go).
- Re-register the core command group as cobra.Command trees after main
  deleted cmd/opencodereview/flags.go in the Cobra migration (alibaba#625). The
  newOcrFlagSet-based parsing in five run helpers is gone; flags now bind
  through Flags() and the helpers take explicit parameters.

Conventions carried over from the surrounding commands: the parent rejects
unknown subcommands and prints help when bare (alibaba#660, alibaba#694); rule and prompt
validate positional count through exactArgs so the error carries the
command's own usage (alibaba#749, alibaba#892); repo and diff flags reuse the shared
helpers; prompt phases are declared in ValidArgs for completion (alibaba#625).

The manual dispatcher and its hand-written usage block are dropped -- Cobra
owns both now -- and core_cmd_test.go trades its argv-slice calls for tests
that exercise the wiring through rootCmd.
Githab-capibara added a commit to Githab-capibara/open-code-review that referenced this pull request Sep 17, 2026
The module path was github.com/open-code-review/open-code-review but the
repo lives at github.com/alibaba/open-code-review. This mismatch prevents
pkg.go.dev indexing and breaks Go Report Card resolution.
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.

2 participants