Skip to content

chore: rename module to github.com/meshy-dev/resty/v2 - #13

Open
knight42 wants to merge 2 commits into
v2from
chore/rename-module-path
Open

knight42 wants to merge 2 commits into
v2from
chore/rename-module-path

Conversation

@knight42

Copy link
Copy Markdown
Contributor

Summary

Renames the module from github.com/go-resty/resty/v2 to github.com/meshy-dev/resty/v2.

The fork kept upstream's module path, so meshyd consumed it through a replace directive and every import site read github.com/go-resty/resty/v2 while actually meaning this fork. Declaring the fork's own path removes that masquerade: consumers require github.com/meshy-dev/resty/v2 directly and drop the replace.

Changes: the module line in go.mod, the two self-imports (util_curl.go → shellescape, example_test.go → root), and the two Bazel importpath attributes. Doc-comment links to upstream godoc are left as-is — they document upstream API.

Consumer impact

  • meshyd follows up by switching all import sites to github.com/meshy-dev/resty/v2 and removing the replace (will go into taichi-dev/meshyd#6129).
  • Existing tags (≤ v2.100.3) keep the old module path and remain usable only via replace; anything after this commit is consumed via the new path.

Testing

go build ./..., go vet ./..., full go test -race ./... pass under the new path.

🤖 Generated with Claude Code

The fork kept upstream's module path and was consumed through a go.mod
replace, so every import site read go-resty while actually meaning this
fork. Declaring the fork's own path lets consumers require it directly
and drop the replace masquerade.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Copilot AI lite review requested due to automatic review settings September 18, 2026 18:36

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

README installation and usage examples still reference the old module path.

Get a fresh assessment by requesting another Copilot review.

Pull request overview

Renames the Go module from github.com/go-resty/resty/v2 to github.com/meshy-dev/resty/v2 and updates related imports and Bazel metadata.

Changes:

  • Updates the go.mod module path.
  • Updates Go self-imports.
  • Updates Bazel import paths and Gazelle metadata.
File summaries
File Description
util_curl.go Updates the shellescape import.
shellescape/BUILD.bazel Updates the shellescape import path.
go.mod Declares the new module path.
example_test.go Updates the root package import.
BUILD.bazel Updates root Bazel metadata.
Review details
  • Files reviewed: 5/5 changed files
  • Comments generated: 1
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread go.mod
Doc links to upstream godoc are retained on purpose — they document
upstream API.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings September 18, 2026 18:51

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

The reviewed changes are consistent; only a minor README example nit remains.

Review details
  • Files reviewed: 6/6 changed files
  • Comments generated: 1
  • Review effort level: Lite

Comment thread README.md
# Go Modules
require github.com/go-resty/resty/v2 v2.16.5
# Go Modules (this fork declares its own module path)
require github.com/meshy-dev/resty/v2 latest
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