From 956fef8d7760ff66a652101674e68e8d6adaeb27 Mon Sep 17 00:00:00 2001 From: Zack Zeng Date: Fri, 18 Sep 2026 11:36:43 -0700 Subject: [PATCH 1/2] chore: rename module to github.com/meshy-dev/resty/v2 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 --- BUILD.bazel | 4 ++-- example_test.go | 2 +- go.mod | 2 +- shellescape/BUILD.bazel | 2 +- util_curl.go | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/BUILD.bazel b/BUILD.bazel index 7248abc..7d12af9 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -1,7 +1,7 @@ load("@bazel_gazelle//:def.bzl", "gazelle") load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") -# gazelle:prefix github.com/go-resty/resty/v2 +# gazelle:prefix github.com/meshy-dev/resty/v2 # gazelle:go_naming_convention import_alias gazelle(name = "gazelle") @@ -24,7 +24,7 @@ go_library( "util.go", "util_curl.go", ], - importpath = "github.com/go-resty/resty/v2", + importpath = "github.com/meshy-dev/resty/v2", visibility = ["//visibility:public"], deps = [ "//shellescape", diff --git a/example_test.go b/example_test.go index 4511cc1..7fffe53 100644 --- a/example_test.go +++ b/example_test.go @@ -15,7 +15,7 @@ import ( "golang.org/x/net/proxy" - "github.com/go-resty/resty/v2" + "github.com/meshy-dev/resty/v2" ) type DropboxError struct { diff --git a/go.mod b/go.mod index 84133aa..ffd210b 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/go-resty/resty/v2 +module github.com/meshy-dev/resty/v2 go 1.27.0 diff --git a/shellescape/BUILD.bazel b/shellescape/BUILD.bazel index fe829e3..71152e0 100644 --- a/shellescape/BUILD.bazel +++ b/shellescape/BUILD.bazel @@ -3,7 +3,7 @@ load("@io_bazel_rules_go//go:def.bzl", "go_library") go_library( name = "shellescape", srcs = ["shellescape.go"], - importpath = "github.com/go-resty/resty/v2/shellescape", + importpath = "github.com/meshy-dev/resty/v2/shellescape", visibility = ["//visibility:public"], ) diff --git a/util_curl.go b/util_curl.go index 073d049..abacb4d 100644 --- a/util_curl.go +++ b/util_curl.go @@ -9,7 +9,7 @@ import ( "net/url" "strings" - "github.com/go-resty/resty/v2/shellescape" + "github.com/meshy-dev/resty/v2/shellescape" ) func buildCurlRequest(req *http.Request, httpCookiejar http.CookieJar) (curl string) { From c9d40e8759ecf54e9af3bc9f41e87a18e78c62b3 Mon Sep 17 00:00:00 2001 From: Zack Zeng Date: Fri, 18 Sep 2026 11:39:50 -0700 Subject: [PATCH 2/2] docs: point README install/usage snippets at the fork's module path MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Doc links to upstream godoc are retained on purpose — they document upstream API. Co-Authored-By: Claude Fable 5 --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 91c7bc8..d468085 100644 --- a/README.md +++ b/README.md @@ -104,8 +104,8 @@ Resty author also published following projects for Go Community. ## Installation ```bash -# 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 ``` ## Usage @@ -114,7 +114,7 @@ The following samples will assist you to become as comfortable as possible with ```go // Import resty into your code and refer it as `resty`. -import "github.com/go-resty/resty/v2" +import "github.com/meshy-dev/resty/v2" ``` #### Simple GET