From 25eccfe92523c4052c28ad5cf240d384a7934f7e Mon Sep 17 00:00:00 2001 From: Jon Langevin Date: Mon, 1 Jun 2026 17:38:39 -0400 Subject: [PATCH 1/2] chore: rename module to github.com/GoCodeAlone/rod + Go 1.26.3 GoCodeAlone maintenance fork of go-rod/rod (upstream stale since 2024). Renames root module path so consumers can require/replace the fork with a matching module path, bumps go directive 1.21->1.26.3, trims go.work to root. Also fixes a non-constant fmt.Errorf vet warning in the compare-chromedp example (errors.New). The 3 nested example/tooling modules are left on the upstream path (not part of the maintained surface). Co-Authored-By: Claude Opus 4.8 (1M context) --- .claude/autodev-state/demo-fidelity-seen | 1 + browser.go | 14 +++++++------- browser_test.go | 12 ++++++------ context.go | 2 +- dev_helpers.go | 8 ++++---- dev_helpers_test.go | 12 ++++++------ element.go | 10 +++++----- element_test.go | 14 +++++++------- error.go | 4 ++-- examples_test.go | 18 +++++++++--------- fixtures/gen-fonts/main.go | 6 +++--- go.mod | 4 ++-- go.work | 9 ++------- go.work.sum | 4 ---- hijack.go | 4 ++-- hijack_test.go | 6 +++--- input.go | 6 +++--- input_test.go | 8 ++++---- lib/assets/generate/main.go | 2 +- lib/benchmark/basic_test.go | 6 +++--- lib/cdp/client.go | 4 ++-- lib/cdp/client_test.go | 10 +++++----- lib/cdp/example_test.go | 8 ++++---- lib/cdp/format.go | 2 +- lib/cdp/utils.go | 2 +- lib/cdp/websocket_test.go | 6 +++--- lib/defaults/defaults.go | 2 +- lib/devices/device.go | 2 +- lib/devices/generate/main.go | 2 +- lib/devices/utils_test.go | 2 +- lib/docker/main.go | 4 ++-- lib/examples/compare-chromedp/click/main.go | 2 +- lib/examples/compare-chromedp/cookie/main.go | 4 ++-- .../compare-chromedp/download_file/main.go | 4 ++-- .../compare-chromedp/download_image/main.go | 2 +- lib/examples/compare-chromedp/emulate/main.go | 4 ++-- lib/examples/compare-chromedp/eval/main.go | 2 +- lib/examples/compare-chromedp/headers/main.go | 2 +- lib/examples/compare-chromedp/keys/main.go | 4 ++-- lib/examples/compare-chromedp/logic/main.go | 2 +- lib/examples/compare-chromedp/pdf/main.go | 2 +- lib/examples/compare-chromedp/proxy/main.go | 7 ++++--- lib/examples/compare-chromedp/remote/main.go | 2 +- .../compare-chromedp/screenshot/main.go | 4 ++-- lib/examples/compare-chromedp/submit/main.go | 4 ++-- lib/examples/compare-chromedp/subtree/main.go | 4 ++-- lib/examples/compare-chromedp/text/main.go | 2 +- lib/examples/compare-chromedp/upload/main.go | 2 +- lib/examples/compare-chromedp/visible/main.go | 2 +- lib/examples/connect-browser/main.go | 4 ++-- lib/examples/custom-launch/main.go | 6 +++--- lib/examples/debug-deadlock/main.go | 4 ++-- lib/examples/disable-window-alert/main.go | 4 ++-- lib/examples/launch-managed/main.go | 6 +++--- lib/examples/stripe/main.go | 2 +- lib/examples/translator/main.go | 2 +- .../use-rod-like-chrome-extension/main.go | 8 ++++---- lib/input/keyboard.go | 2 +- lib/input/keyboard_test.go | 4 ++-- lib/input/mouse.go | 2 +- lib/input/mouse_test.go | 4 ++-- lib/js/generate/main.go | 2 +- lib/launcher/browser.go | 4 ++-- lib/launcher/example_test.go | 6 +++--- lib/launcher/launcher.go | 6 +++--- lib/launcher/launcher_test.go | 8 ++++---- lib/launcher/load_test.go | 8 ++++---- lib/launcher/manager.go | 6 +++--- lib/launcher/os_unix.go | 2 +- lib/launcher/private_test.go | 8 ++++---- lib/launcher/revision/main.go | 2 +- lib/launcher/rod-manager/main.go | 4 ++-- lib/launcher/url_parser.go | 2 +- lib/launcher/utils.go | 2 +- lib/proto/a_interface_test.go | 4 ++-- lib/proto/a_patch_test.go | 2 +- lib/proto/a_utils_test.go | 2 +- lib/proto/definitions_test.go | 2 +- lib/proto/generate/main.go | 4 ++-- lib/proto/generate/utils.go | 4 ++-- lib/utils/ci-test/main.go | 2 +- lib/utils/get-browser/main.go | 4 ++-- lib/utils/imageutil.go | 2 +- lib/utils/imageutil_test.go | 2 +- lib/utils/lint/main.go | 2 +- lib/utils/lint/prefix.go | 2 +- lib/utils/rename/main.go | 2 +- lib/utils/setup/main.go | 2 +- lib/utils/shell/main.go | 2 +- lib/utils/simple-check/main.go | 2 +- lib/utils/sleeper_test.go | 2 +- lib/utils/utils_test.go | 2 +- must.go | 8 ++++---- must_test.go | 4 ++-- page.go | 10 +++++----- page_eval.go | 8 ++++---- page_eval_test.go | 8 ++++---- page_test.go | 12 ++++++------ query.go | 8 ++++---- query_test.go | 10 +++++----- setup_test.go | 12 ++++++------ states.go | 2 +- utils.go | 6 +++--- 103 files changed, 241 insertions(+), 248 deletions(-) create mode 100644 .claude/autodev-state/demo-fidelity-seen delete mode 100644 go.work.sum diff --git a/.claude/autodev-state/demo-fidelity-seen b/.claude/autodev-state/demo-fidelity-seen new file mode 100644 index 00000000..453d0fc9 --- /dev/null +++ b/.claude/autodev-state/demo-fidelity-seen @@ -0,0 +1 @@ +5f9d9317b0b15af57f7919c732b8bdc7ca20e7839a7670237800844ca90a487c diff --git a/browser.go b/browser.go index bd2045f5..e8118e64 100644 --- a/browser.go +++ b/browser.go @@ -14,12 +14,12 @@ import ( "sync" "time" - "github.com/go-rod/rod/lib/cdp" - "github.com/go-rod/rod/lib/defaults" - "github.com/go-rod/rod/lib/devices" - "github.com/go-rod/rod/lib/launcher" - "github.com/go-rod/rod/lib/proto" - "github.com/go-rod/rod/lib/utils" + "github.com/GoCodeAlone/rod/lib/cdp" + "github.com/GoCodeAlone/rod/lib/defaults" + "github.com/GoCodeAlone/rod/lib/devices" + "github.com/GoCodeAlone/rod/lib/launcher" + "github.com/GoCodeAlone/rod/lib/proto" + "github.com/GoCodeAlone/rod/lib/utils" "github.com/ysmood/goob" ) @@ -32,7 +32,7 @@ var ( // Browser represents the browser. // It doesn't depends on file system, it should work with remote browser seamlessly. // To check the env var you can use to quickly enable options from CLI, check here: -// https://pkg.go.dev/github.com/go-rod/rod/lib/defaults +// https://pkg.go.dev/github.com/GoCodeAlone/rod/lib/defaults type Browser struct { // BrowserContextID is the id for incognito window BrowserContextID proto.BrowserBrowserContextID diff --git a/browser_test.go b/browser_test.go index 419ebd3e..463020b8 100644 --- a/browser_test.go +++ b/browser_test.go @@ -10,12 +10,12 @@ import ( "testing" "time" - "github.com/go-rod/rod" - "github.com/go-rod/rod/lib/cdp" - "github.com/go-rod/rod/lib/devices" - "github.com/go-rod/rod/lib/launcher" - "github.com/go-rod/rod/lib/proto" - "github.com/go-rod/rod/lib/utils" + "github.com/GoCodeAlone/rod" + "github.com/GoCodeAlone/rod/lib/cdp" + "github.com/GoCodeAlone/rod/lib/devices" + "github.com/GoCodeAlone/rod/lib/launcher" + "github.com/GoCodeAlone/rod/lib/proto" + "github.com/GoCodeAlone/rod/lib/utils" "github.com/ysmood/got" "github.com/ysmood/gson" ) diff --git a/context.go b/context.go index b7706954..a49e5b89 100644 --- a/context.go +++ b/context.go @@ -4,7 +4,7 @@ import ( "context" "time" - "github.com/go-rod/rod/lib/utils" + "github.com/GoCodeAlone/rod/lib/utils" ) type ( diff --git a/dev_helpers.go b/dev_helpers.go index c4527563..50c18aa9 100644 --- a/dev_helpers.go +++ b/dev_helpers.go @@ -13,10 +13,10 @@ import ( "strings" "time" - "github.com/go-rod/rod/lib/assets" - "github.com/go-rod/rod/lib/js" - "github.com/go-rod/rod/lib/proto" - "github.com/go-rod/rod/lib/utils" + "github.com/GoCodeAlone/rod/lib/assets" + "github.com/GoCodeAlone/rod/lib/js" + "github.com/GoCodeAlone/rod/lib/proto" + "github.com/GoCodeAlone/rod/lib/utils" ) // TraceType for logger. diff --git a/dev_helpers_test.go b/dev_helpers_test.go index c0940c36..7f714f87 100644 --- a/dev_helpers_test.go +++ b/dev_helpers_test.go @@ -4,12 +4,12 @@ import ( "testing" "time" - "github.com/go-rod/rod" - "github.com/go-rod/rod/lib/defaults" - "github.com/go-rod/rod/lib/js" - "github.com/go-rod/rod/lib/launcher" - "github.com/go-rod/rod/lib/proto" - "github.com/go-rod/rod/lib/utils" + "github.com/GoCodeAlone/rod" + "github.com/GoCodeAlone/rod/lib/defaults" + "github.com/GoCodeAlone/rod/lib/js" + "github.com/GoCodeAlone/rod/lib/launcher" + "github.com/GoCodeAlone/rod/lib/proto" + "github.com/GoCodeAlone/rod/lib/utils" "github.com/ysmood/gson" ) diff --git a/element.go b/element.go index 97fceed0..cba80578 100644 --- a/element.go +++ b/element.go @@ -8,11 +8,11 @@ import ( "strings" "time" - "github.com/go-rod/rod/lib/cdp" - "github.com/go-rod/rod/lib/input" - "github.com/go-rod/rod/lib/js" - "github.com/go-rod/rod/lib/proto" - "github.com/go-rod/rod/lib/utils" + "github.com/GoCodeAlone/rod/lib/cdp" + "github.com/GoCodeAlone/rod/lib/input" + "github.com/GoCodeAlone/rod/lib/js" + "github.com/GoCodeAlone/rod/lib/proto" + "github.com/GoCodeAlone/rod/lib/utils" "github.com/ysmood/gson" ) diff --git a/element_test.go b/element_test.go index e10eb7c4..b7c3a174 100644 --- a/element_test.go +++ b/element_test.go @@ -13,13 +13,13 @@ import ( "testing" "time" - "github.com/go-rod/rod" - "github.com/go-rod/rod/lib/cdp" - "github.com/go-rod/rod/lib/devices" - "github.com/go-rod/rod/lib/input" - "github.com/go-rod/rod/lib/launcher" - "github.com/go-rod/rod/lib/proto" - "github.com/go-rod/rod/lib/utils" + "github.com/GoCodeAlone/rod" + "github.com/GoCodeAlone/rod/lib/cdp" + "github.com/GoCodeAlone/rod/lib/devices" + "github.com/GoCodeAlone/rod/lib/input" + "github.com/GoCodeAlone/rod/lib/launcher" + "github.com/GoCodeAlone/rod/lib/proto" + "github.com/GoCodeAlone/rod/lib/utils" "github.com/ysmood/gson" ) diff --git a/error.go b/error.go index c6a43c06..86cc98eb 100644 --- a/error.go +++ b/error.go @@ -4,8 +4,8 @@ import ( "context" "fmt" - "github.com/go-rod/rod/lib/proto" - "github.com/go-rod/rod/lib/utils" + "github.com/GoCodeAlone/rod/lib/proto" + "github.com/GoCodeAlone/rod/lib/utils" ) // TryError error. diff --git a/examples_test.go b/examples_test.go index 94568265..3eefd068 100644 --- a/examples_test.go +++ b/examples_test.go @@ -10,12 +10,12 @@ import ( "sync" "time" - "github.com/go-rod/rod" - "github.com/go-rod/rod/lib/cdp" - "github.com/go-rod/rod/lib/input" - "github.com/go-rod/rod/lib/launcher" - "github.com/go-rod/rod/lib/proto" - "github.com/go-rod/rod/lib/utils" + "github.com/GoCodeAlone/rod" + "github.com/GoCodeAlone/rod/lib/cdp" + "github.com/GoCodeAlone/rod/lib/input" + "github.com/GoCodeAlone/rod/lib/launcher" + "github.com/GoCodeAlone/rod/lib/proto" + "github.com/GoCodeAlone/rod/lib/utils" "github.com/ysmood/gson" ) @@ -64,7 +64,7 @@ func Example_basic() { // Shows how to disable headless mode and debug. // Rod provides a lot of debug options, you can set them with setter methods or use environment variables. -// Doc for environment variables: https://pkg.go.dev/github.com/go-rod/rod/lib/defaults +// Doc for environment variables: https://pkg.go.dev/github.com/GoCodeAlone/rod/lib/defaults func Example_disable_headless_to_debug() { // Headless runs the browser on foreground, you can also use flag "-rod=show" // Devtools opens the tab in each new tab opened automatically @@ -408,7 +408,7 @@ func Example_customize_browser_launch() { } // When rod doesn't have a feature that you need. You can easily call the cdp to achieve it. -// List of cdp API: https://github.com/go-rod/rod/tree/main/lib/proto +// List of cdp API: https://github.com/GoCodeAlone/rod/tree/main/lib/proto func Example_direct_cdp() { page := rod.New().MustConnect().MustPage() @@ -661,7 +661,7 @@ func Example_load_extension() { Set("load-extension", extPath). // Headless mode doesn't support extension yet. // Reason: https://bugs.chromium.org/p/chromium/issues/detail?id=706008#c5 - // You can use XVFB to get rid of it: https://github.com/go-rod/rod/blob/main/lib/examples/launch-managed/main.go + // You can use XVFB to get rid of it: https://github.com/GoCodeAlone/rod/blob/main/lib/examples/launch-managed/main.go Headless(false). MustLaunch() diff --git a/fixtures/gen-fonts/main.go b/fixtures/gen-fonts/main.go index 5937d896..fb1b187b 100644 --- a/fixtures/gen-fonts/main.go +++ b/fixtures/gen-fonts/main.go @@ -9,9 +9,9 @@ import ( "fmt" "log" - "github.com/go-rod/rod" - "github.com/go-rod/rod/lib/launcher" - "github.com/go-rod/rod/lib/utils" + "github.com/GoCodeAlone/rod" + "github.com/GoCodeAlone/rod/lib/launcher" + "github.com/GoCodeAlone/rod/lib/utils" ) func main() { diff --git a/go.mod b/go.mod index c42471b5..6a99d68b 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ -module github.com/go-rod/rod +module github.com/GoCodeAlone/rod -go 1.21 +go 1.26.3 require ( github.com/ysmood/fetchup v0.2.3 diff --git a/go.work b/go.work index a97f3b4d..08f3c018 100644 --- a/go.work +++ b/go.work @@ -1,8 +1,3 @@ -go 1.22 +go 1.26.3 -use ( - . - ./lib/examples/custom-websocket - ./lib/examples/e2e-testing - ./lib/utils/check-issue -) +use . diff --git a/go.work.sum b/go.work.sum deleted file mode 100644 index c5ed75a6..00000000 --- a/go.work.sum +++ /dev/null @@ -1,4 +0,0 @@ -github.com/ysmood/fetchup v0.2.1 h1:n/NgIx92KOXFiKAhK3d+LlKpl8JuSjh5U27ULmHKtag= -github.com/ysmood/fetchup v0.2.1/go.mod h1:94ROLWpn5fmCD4LPlcZ+LOE/iE/kRTU3kL+0ue/V+Os= -github.com/ysmood/got v0.33.2 h1:mz0PaCMzR//YBtDDkDf6z0O09SfotXBHzw3zLrrS2sw= -github.com/ysmood/got v0.33.2/go.mod h1:P3C/Wwttv4uq/tpovaH+c8ANmHePyFPxEbNzdxcEGDU= diff --git a/hijack.go b/hijack.go index a02d4f33..ca79e428 100644 --- a/hijack.go +++ b/hijack.go @@ -9,8 +9,8 @@ import ( "regexp" "strings" - "github.com/go-rod/rod/lib/proto" - "github.com/go-rod/rod/lib/utils" + "github.com/GoCodeAlone/rod/lib/proto" + "github.com/GoCodeAlone/rod/lib/utils" "github.com/ysmood/gson" ) diff --git a/hijack_test.go b/hijack_test.go index 470fd8ce..0ab54abb 100644 --- a/hijack_test.go +++ b/hijack_test.go @@ -10,9 +10,9 @@ import ( "testing" "time" - "github.com/go-rod/rod" - "github.com/go-rod/rod/lib/proto" - "github.com/go-rod/rod/lib/utils" + "github.com/GoCodeAlone/rod" + "github.com/GoCodeAlone/rod/lib/proto" + "github.com/GoCodeAlone/rod/lib/utils" "github.com/ysmood/gson" ) diff --git a/input.go b/input.go index c7d3f9fb..a4ee78fe 100644 --- a/input.go +++ b/input.go @@ -4,9 +4,9 @@ import ( "fmt" "sync" - "github.com/go-rod/rod/lib/input" - "github.com/go-rod/rod/lib/proto" - "github.com/go-rod/rod/lib/utils" + "github.com/GoCodeAlone/rod/lib/input" + "github.com/GoCodeAlone/rod/lib/proto" + "github.com/GoCodeAlone/rod/lib/utils" "github.com/ysmood/gson" ) diff --git a/input_test.go b/input_test.go index 128cde0a..94883c67 100644 --- a/input_test.go +++ b/input_test.go @@ -3,10 +3,10 @@ package rod_test import ( "testing" - "github.com/go-rod/rod/lib/devices" - "github.com/go-rod/rod/lib/input" - "github.com/go-rod/rod/lib/proto" - "github.com/go-rod/rod/lib/utils" + "github.com/GoCodeAlone/rod/lib/devices" + "github.com/GoCodeAlone/rod/lib/input" + "github.com/GoCodeAlone/rod/lib/proto" + "github.com/GoCodeAlone/rod/lib/utils" ) func TestKeyActions(t *testing.T) { diff --git a/lib/assets/generate/main.go b/lib/assets/generate/main.go index a138aeb1..7f8d2704 100644 --- a/lib/assets/generate/main.go +++ b/lib/assets/generate/main.go @@ -4,7 +4,7 @@ package main import ( "path/filepath" - "github.com/go-rod/rod/lib/utils" + "github.com/GoCodeAlone/rod/lib/utils" ) var slash = filepath.FromSlash diff --git a/lib/benchmark/basic_test.go b/lib/benchmark/basic_test.go index fde2398c..75c0aa10 100644 --- a/lib/benchmark/basic_test.go +++ b/lib/benchmark/basic_test.go @@ -7,9 +7,9 @@ import ( "path/filepath" "testing" - "github.com/go-rod/rod" - "github.com/go-rod/rod/lib/launcher" - "github.com/go-rod/rod/lib/utils" + "github.com/GoCodeAlone/rod" + "github.com/GoCodeAlone/rod/lib/launcher" + "github.com/GoCodeAlone/rod/lib/utils" "github.com/ysmood/got" ) diff --git a/lib/cdp/client.go b/lib/cdp/client.go index 42f39894..23a2a07f 100644 --- a/lib/cdp/client.go +++ b/lib/cdp/client.go @@ -7,8 +7,8 @@ import ( "sync" "sync/atomic" - "github.com/go-rod/rod/lib/defaults" - "github.com/go-rod/rod/lib/utils" + "github.com/GoCodeAlone/rod/lib/defaults" + "github.com/GoCodeAlone/rod/lib/utils" ) // Request to send to browser. diff --git a/lib/cdp/client_test.go b/lib/cdp/client_test.go index f09596e7..77b4f869 100644 --- a/lib/cdp/client_test.go +++ b/lib/cdp/client_test.go @@ -9,11 +9,11 @@ import ( "testing" "time" - "github.com/go-rod/rod" - "github.com/go-rod/rod/lib/cdp" - "github.com/go-rod/rod/lib/defaults" - "github.com/go-rod/rod/lib/launcher" - "github.com/go-rod/rod/lib/utils" + "github.com/GoCodeAlone/rod" + "github.com/GoCodeAlone/rod/lib/cdp" + "github.com/GoCodeAlone/rod/lib/defaults" + "github.com/GoCodeAlone/rod/lib/launcher" + "github.com/GoCodeAlone/rod/lib/utils" "github.com/ysmood/got" "github.com/ysmood/gotrace" "github.com/ysmood/gson" diff --git a/lib/cdp/example_test.go b/lib/cdp/example_test.go index 9cd6fa91..999c7789 100644 --- a/lib/cdp/example_test.go +++ b/lib/cdp/example_test.go @@ -4,10 +4,10 @@ import ( "context" "fmt" - "github.com/go-rod/rod/lib/cdp" - "github.com/go-rod/rod/lib/launcher" - "github.com/go-rod/rod/lib/proto" - "github.com/go-rod/rod/lib/utils" + "github.com/GoCodeAlone/rod/lib/cdp" + "github.com/GoCodeAlone/rod/lib/launcher" + "github.com/GoCodeAlone/rod/lib/proto" + "github.com/GoCodeAlone/rod/lib/utils" "github.com/ysmood/gson" ) diff --git a/lib/cdp/format.go b/lib/cdp/format.go index e9ca91da..88532905 100644 --- a/lib/cdp/format.go +++ b/lib/cdp/format.go @@ -3,7 +3,7 @@ package cdp import ( "fmt" - "github.com/go-rod/rod/lib/utils" + "github.com/GoCodeAlone/rod/lib/utils" ) func (req Request) String() string { diff --git a/lib/cdp/utils.go b/lib/cdp/utils.go index ccdbea6b..e8928561 100644 --- a/lib/cdp/utils.go +++ b/lib/cdp/utils.go @@ -6,7 +6,7 @@ import ( "net" "net/http" - "github.com/go-rod/rod/lib/utils" + "github.com/GoCodeAlone/rod/lib/utils" ) // Dialer interface for WebSocket connection. diff --git a/lib/cdp/websocket_test.go b/lib/cdp/websocket_test.go index 92e3eada..ede67c7f 100644 --- a/lib/cdp/websocket_test.go +++ b/lib/cdp/websocket_test.go @@ -9,9 +9,9 @@ import ( "sync" "testing" - "github.com/go-rod/rod/lib/cdp" - "github.com/go-rod/rod/lib/launcher" - "github.com/go-rod/rod/lib/utils" + "github.com/GoCodeAlone/rod/lib/cdp" + "github.com/GoCodeAlone/rod/lib/launcher" + "github.com/GoCodeAlone/rod/lib/utils" "github.com/ysmood/got" "github.com/ysmood/gson" ) diff --git a/lib/defaults/defaults.go b/lib/defaults/defaults.go index 5474b4cf..4b75d96d 100644 --- a/lib/defaults/defaults.go +++ b/lib/defaults/defaults.go @@ -11,7 +11,7 @@ import ( "strings" "time" - "github.com/go-rod/rod/lib/utils" + "github.com/GoCodeAlone/rod/lib/utils" ) // Trace is the default of rod.Browser.Trace . diff --git a/lib/devices/device.go b/lib/devices/device.go index 5f6f21fc..e1b601df 100644 --- a/lib/devices/device.go +++ b/lib/devices/device.go @@ -2,7 +2,7 @@ package devices import ( - "github.com/go-rod/rod/lib/proto" + "github.com/GoCodeAlone/rod/lib/proto" "github.com/ysmood/gson" ) diff --git a/lib/devices/generate/main.go b/lib/devices/generate/main.go index 92b627db..670d4381 100644 --- a/lib/devices/generate/main.go +++ b/lib/devices/generate/main.go @@ -8,7 +8,7 @@ import ( "path/filepath" "strings" - "github.com/go-rod/rod/lib/utils" + "github.com/GoCodeAlone/rod/lib/utils" "github.com/ysmood/gson" ) diff --git a/lib/devices/utils_test.go b/lib/devices/utils_test.go index 5c026242..43e040d3 100644 --- a/lib/devices/utils_test.go +++ b/lib/devices/utils_test.go @@ -3,7 +3,7 @@ package devices_test import ( "testing" - "github.com/go-rod/rod/lib/devices" + "github.com/GoCodeAlone/rod/lib/devices" "github.com/ysmood/got" ) diff --git a/lib/docker/main.go b/lib/docker/main.go index c848827e..c16a2301 100644 --- a/lib/docker/main.go +++ b/lib/docker/main.go @@ -11,7 +11,7 @@ import ( "regexp" "strings" - "github.com/go-rod/rod/lib/utils" + "github.com/GoCodeAlone/rod/lib/utils" ) func main() { @@ -100,7 +100,7 @@ func description(dev bool) string { f = "dev." + f } - return `--label=org.opencontainers.image.description=https://github.com/go-rod/rod/blob/` + headSha + "/lib/docker/" + f + return `--label=org.opencontainers.image.description=https://github.com/GoCodeAlone/rod/blob/` + headSha + "/lib/docker/" + f } const registry = "ghcr.io/go-rod/rod" diff --git a/lib/examples/compare-chromedp/click/main.go b/lib/examples/compare-chromedp/click/main.go index d209e4f7..e3aa8560 100644 --- a/lib/examples/compare-chromedp/click/main.go +++ b/lib/examples/compare-chromedp/click/main.go @@ -5,7 +5,7 @@ import ( "log" "time" - "github.com/go-rod/rod" + "github.com/GoCodeAlone/rod" ) // This example demonstrates how to use a selector to click on an element. diff --git a/lib/examples/compare-chromedp/cookie/main.go b/lib/examples/compare-chromedp/cookie/main.go index ad060e59..2b3351bb 100644 --- a/lib/examples/compare-chromedp/cookie/main.go +++ b/lib/examples/compare-chromedp/cookie/main.go @@ -9,8 +9,8 @@ import ( "net/http" "time" - "github.com/go-rod/rod" - "github.com/go-rod/rod/lib/proto" + "github.com/GoCodeAlone/rod" + "github.com/GoCodeAlone/rod/lib/proto" ) // This example demonstrates how we can modify the cookies on a web page. diff --git a/lib/examples/compare-chromedp/download_file/main.go b/lib/examples/compare-chromedp/download_file/main.go index cc79dc2e..39967f14 100644 --- a/lib/examples/compare-chromedp/download_file/main.go +++ b/lib/examples/compare-chromedp/download_file/main.go @@ -7,8 +7,8 @@ import ( "os" "path/filepath" - "github.com/go-rod/rod" - "github.com/go-rod/rod/lib/proto" + "github.com/GoCodeAlone/rod" + "github.com/GoCodeAlone/rod/lib/proto" ) func main() { diff --git a/lib/examples/compare-chromedp/download_image/main.go b/lib/examples/compare-chromedp/download_image/main.go index 58b47fb1..70e10247 100644 --- a/lib/examples/compare-chromedp/download_image/main.go +++ b/lib/examples/compare-chromedp/download_image/main.go @@ -5,7 +5,7 @@ import ( "log" "os" - "github.com/go-rod/rod" + "github.com/GoCodeAlone/rod" ) func main() { diff --git a/lib/examples/compare-chromedp/emulate/main.go b/lib/examples/compare-chromedp/emulate/main.go index dd58ab5c..afe47d8c 100644 --- a/lib/examples/compare-chromedp/emulate/main.go +++ b/lib/examples/compare-chromedp/emulate/main.go @@ -2,8 +2,8 @@ package main import ( - "github.com/go-rod/rod" - "github.com/go-rod/rod/lib/devices" + "github.com/GoCodeAlone/rod" + "github.com/GoCodeAlone/rod/lib/devices" ) func main() { diff --git a/lib/examples/compare-chromedp/eval/main.go b/lib/examples/compare-chromedp/eval/main.go index 387ef5e7..98173d28 100644 --- a/lib/examples/compare-chromedp/eval/main.go +++ b/lib/examples/compare-chromedp/eval/main.go @@ -4,7 +4,7 @@ package main import ( "log" - "github.com/go-rod/rod" + "github.com/GoCodeAlone/rod" ) // This example shows how we can use Eval to run scripts in the page. diff --git a/lib/examples/compare-chromedp/headers/main.go b/lib/examples/compare-chromedp/headers/main.go index 362bc1ce..5e8b5161 100644 --- a/lib/examples/compare-chromedp/headers/main.go +++ b/lib/examples/compare-chromedp/headers/main.go @@ -8,7 +8,7 @@ import ( "net" "net/http" - "github.com/go-rod/rod" + "github.com/GoCodeAlone/rod" ) // This example demonstrates how to set a HTTP header on requests. diff --git a/lib/examples/compare-chromedp/keys/main.go b/lib/examples/compare-chromedp/keys/main.go index 5e430919..d776a448 100644 --- a/lib/examples/compare-chromedp/keys/main.go +++ b/lib/examples/compare-chromedp/keys/main.go @@ -7,8 +7,8 @@ import ( "net" "net/http" - "github.com/go-rod/rod" - "github.com/go-rod/rod/lib/input" + "github.com/GoCodeAlone/rod" + "github.com/GoCodeAlone/rod/lib/input" ) // This example demonstrates how to send key events to an element. diff --git a/lib/examples/compare-chromedp/logic/main.go b/lib/examples/compare-chromedp/logic/main.go index 06eff286..f409c4e1 100644 --- a/lib/examples/compare-chromedp/logic/main.go +++ b/lib/examples/compare-chromedp/logic/main.go @@ -5,7 +5,7 @@ import ( "log" "time" - "github.com/go-rod/rod" + "github.com/GoCodeAlone/rod" ) // On awesome-go page, finding the specified section sect, diff --git a/lib/examples/compare-chromedp/pdf/main.go b/lib/examples/compare-chromedp/pdf/main.go index 0c8d5a45..60df3cb9 100644 --- a/lib/examples/compare-chromedp/pdf/main.go +++ b/lib/examples/compare-chromedp/pdf/main.go @@ -4,7 +4,7 @@ package main import ( "fmt" - "github.com/go-rod/rod" + "github.com/GoCodeAlone/rod" ) func main() { diff --git a/lib/examples/compare-chromedp/proxy/main.go b/lib/examples/compare-chromedp/proxy/main.go index d29c62c9..31328294 100644 --- a/lib/examples/compare-chromedp/proxy/main.go +++ b/lib/examples/compare-chromedp/proxy/main.go @@ -2,14 +2,15 @@ package main import ( + "errors" "fmt" "log" "net/http" "net/http/httptest" "net/http/httputil" - "github.com/go-rod/rod" - "github.com/go-rod/rod/lib/launcher" + "github.com/GoCodeAlone/rod" + "github.com/GoCodeAlone/rod/lib/launcher" ) func main() { @@ -66,7 +67,7 @@ type transport struct { func (t *transport) RoundTrip(r *http.Request) (*http.Response, error) { if h := r.Header.Get("X-Failed"); h != "" { - return nil, fmt.Errorf(h) + return nil, errors.New(h) } return t.RoundTripper.RoundTrip(r) } diff --git a/lib/examples/compare-chromedp/remote/main.go b/lib/examples/compare-chromedp/remote/main.go index c6796906..554b1efe 100644 --- a/lib/examples/compare-chromedp/remote/main.go +++ b/lib/examples/compare-chromedp/remote/main.go @@ -5,7 +5,7 @@ import ( "flag" "log" - "github.com/go-rod/rod" + "github.com/GoCodeAlone/rod" ) var flagDevToolWsURL = flag.String("devtools-ws-url", "", "DevTools WebSocket URL") diff --git a/lib/examples/compare-chromedp/screenshot/main.go b/lib/examples/compare-chromedp/screenshot/main.go index d1d1bf32..78d99f5b 100644 --- a/lib/examples/compare-chromedp/screenshot/main.go +++ b/lib/examples/compare-chromedp/screenshot/main.go @@ -4,8 +4,8 @@ package main import ( "os" - "github.com/go-rod/rod" - "github.com/go-rod/rod/lib/proto" + "github.com/GoCodeAlone/rod" + "github.com/GoCodeAlone/rod/lib/proto" "github.com/ysmood/gson" ) diff --git a/lib/examples/compare-chromedp/submit/main.go b/lib/examples/compare-chromedp/submit/main.go index aad442ca..af772871 100644 --- a/lib/examples/compare-chromedp/submit/main.go +++ b/lib/examples/compare-chromedp/submit/main.go @@ -5,8 +5,8 @@ import ( "log" "strings" - "github.com/go-rod/rod" - "github.com/go-rod/rod/lib/input" + "github.com/GoCodeAlone/rod" + "github.com/GoCodeAlone/rod/lib/input" ) // This example demonstrates how to fill out and submit a form. diff --git a/lib/examples/compare-chromedp/subtree/main.go b/lib/examples/compare-chromedp/subtree/main.go index 234ee2ba..8d0f32e4 100644 --- a/lib/examples/compare-chromedp/subtree/main.go +++ b/lib/examples/compare-chromedp/subtree/main.go @@ -10,8 +10,8 @@ import ( "os" "strings" - "github.com/go-rod/rod" - "github.com/go-rod/rod/lib/proto" + "github.com/GoCodeAlone/rod" + "github.com/GoCodeAlone/rod/lib/proto" ) func main() { diff --git a/lib/examples/compare-chromedp/text/main.go b/lib/examples/compare-chromedp/text/main.go index fe2c5e40..bdcba79d 100644 --- a/lib/examples/compare-chromedp/text/main.go +++ b/lib/examples/compare-chromedp/text/main.go @@ -5,7 +5,7 @@ import ( "log" "strings" - "github.com/go-rod/rod" + "github.com/GoCodeAlone/rod" ) // This example demonstrates how to extract text from a specific element. diff --git a/lib/examples/compare-chromedp/upload/main.go b/lib/examples/compare-chromedp/upload/main.go index 8f98236e..31788f3d 100644 --- a/lib/examples/compare-chromedp/upload/main.go +++ b/lib/examples/compare-chromedp/upload/main.go @@ -9,7 +9,7 @@ import ( "net/http" "os" - "github.com/go-rod/rod" + "github.com/GoCodeAlone/rod" ) // This example demonstrates how to upload a file on a form. diff --git a/lib/examples/compare-chromedp/visible/main.go b/lib/examples/compare-chromedp/visible/main.go index cfb1cb72..2904c28c 100644 --- a/lib/examples/compare-chromedp/visible/main.go +++ b/lib/examples/compare-chromedp/visible/main.go @@ -7,7 +7,7 @@ import ( "net" "net/http" - "github.com/go-rod/rod" + "github.com/GoCodeAlone/rod" ) func main() { diff --git a/lib/examples/connect-browser/main.go b/lib/examples/connect-browser/main.go index b56376fb..5918ca89 100644 --- a/lib/examples/connect-browser/main.go +++ b/lib/examples/connect-browser/main.go @@ -4,8 +4,8 @@ package main import ( "fmt" - "github.com/go-rod/rod" - "github.com/go-rod/rod/lib/launcher" + "github.com/GoCodeAlone/rod" + "github.com/GoCodeAlone/rod/lib/launcher" ) // To manually launch a browser. diff --git a/lib/examples/custom-launch/main.go b/lib/examples/custom-launch/main.go index 95203989..a893e85a 100644 --- a/lib/examples/custom-launch/main.go +++ b/lib/examples/custom-launch/main.go @@ -4,14 +4,14 @@ package main import ( "fmt" - "github.com/go-rod/rod" - "github.com/go-rod/rod/lib/launcher" + "github.com/GoCodeAlone/rod" + "github.com/GoCodeAlone/rod/lib/launcher" ) func main() { l := launcher.New() - // For more info: https://pkg.go.dev/github.com/go-rod/rod/lib/launcher + // For more info: https://pkg.go.dev/github.com/GoCodeAlone/rod/lib/launcher u := l.MustLaunch() browser := rod.New().ControlURL(u).MustConnect() diff --git a/lib/examples/debug-deadlock/main.go b/lib/examples/debug-deadlock/main.go index d30645f1..9770542f 100644 --- a/lib/examples/debug-deadlock/main.go +++ b/lib/examples/debug-deadlock/main.go @@ -4,7 +4,7 @@ package main import ( "fmt" - "github.com/go-rod/rod" + "github.com/GoCodeAlone/rod" "github.com/ysmood/gotrace" ) @@ -27,7 +27,7 @@ func yourCodeHere() { /* goroutine 7 [select]: -github.com/go-rod/rod.(*Page).MustElement(0xc00037e000, 0xc00063a0f0, 0x1, 0x1, 0x0) +github.com/GoCodeAlone/rod.(*Page).MustElement(0xc00037e000, 0xc00063a0f0, 0x1, 0x1, 0x0) rod/must.go:425 +0x4d created by main.yourCodeHere rod/lib/examples/debug-deadlock/main.go:22 +0xb8 diff --git a/lib/examples/disable-window-alert/main.go b/lib/examples/disable-window-alert/main.go index a5afd434..9862890e 100644 --- a/lib/examples/disable-window-alert/main.go +++ b/lib/examples/disable-window-alert/main.go @@ -5,8 +5,8 @@ import ( "fmt" "net/http" - "github.com/go-rod/rod" - "github.com/go-rod/rod/lib/utils" + "github.com/GoCodeAlone/rod" + "github.com/GoCodeAlone/rod/lib/utils" ) func main() { diff --git a/lib/examples/launch-managed/main.go b/lib/examples/launch-managed/main.go index 57edfe07..a6f937cd 100644 --- a/lib/examples/launch-managed/main.go +++ b/lib/examples/launch-managed/main.go @@ -4,9 +4,9 @@ package main import ( "fmt" - "github.com/go-rod/rod" - "github.com/go-rod/rod/lib/launcher" - "github.com/go-rod/rod/lib/utils" + "github.com/GoCodeAlone/rod" + "github.com/GoCodeAlone/rod/lib/launcher" + "github.com/GoCodeAlone/rod/lib/utils" ) func main() { diff --git a/lib/examples/stripe/main.go b/lib/examples/stripe/main.go index 98b2768c..26b22e38 100644 --- a/lib/examples/stripe/main.go +++ b/lib/examples/stripe/main.go @@ -6,7 +6,7 @@ import ( "io" "net/http" - "github.com/go-rod/rod" + "github.com/GoCodeAlone/rod" "github.com/ysmood/gson" ) diff --git a/lib/examples/translator/main.go b/lib/examples/translator/main.go index 79818a6a..6832d7ae 100644 --- a/lib/examples/translator/main.go +++ b/lib/examples/translator/main.go @@ -7,7 +7,7 @@ import ( "log" "strings" - "github.com/go-rod/rod" + "github.com/GoCodeAlone/rod" ) func main() { diff --git a/lib/examples/use-rod-like-chrome-extension/main.go b/lib/examples/use-rod-like-chrome-extension/main.go index 4c8e5d20..fb0e4eaa 100644 --- a/lib/examples/use-rod-like-chrome-extension/main.go +++ b/lib/examples/use-rod-like-chrome-extension/main.go @@ -8,10 +8,10 @@ import ( "net/http" "os" - "github.com/go-rod/rod" - "github.com/go-rod/rod/lib/launcher" - "github.com/go-rod/rod/lib/proto" - "github.com/go-rod/rod/lib/utils" + "github.com/GoCodeAlone/rod" + "github.com/GoCodeAlone/rod/lib/launcher" + "github.com/GoCodeAlone/rod/lib/proto" + "github.com/GoCodeAlone/rod/lib/utils" "github.com/ysmood/gson" ) diff --git a/lib/input/keyboard.go b/lib/input/keyboard.go index 85b36659..7ba5eb16 100644 --- a/lib/input/keyboard.go +++ b/lib/input/keyboard.go @@ -2,7 +2,7 @@ package input import ( - "github.com/go-rod/rod/lib/proto" + "github.com/GoCodeAlone/rod/lib/proto" "github.com/ysmood/gson" ) diff --git a/lib/input/keyboard_test.go b/lib/input/keyboard_test.go index 133b36f9..d58cc958 100644 --- a/lib/input/keyboard_test.go +++ b/lib/input/keyboard_test.go @@ -3,8 +3,8 @@ package input_test import ( "testing" - "github.com/go-rod/rod/lib/input" - "github.com/go-rod/rod/lib/proto" + "github.com/GoCodeAlone/rod/lib/input" + "github.com/GoCodeAlone/rod/lib/proto" "github.com/ysmood/got" "github.com/ysmood/gson" ) diff --git a/lib/input/mouse.go b/lib/input/mouse.go index 596891ef..59072cbb 100644 --- a/lib/input/mouse.go +++ b/lib/input/mouse.go @@ -1,6 +1,6 @@ package input -import "github.com/go-rod/rod/lib/proto" +import "github.com/GoCodeAlone/rod/lib/proto" // MouseKeys is the map for mouse keys. var MouseKeys = map[proto.InputMouseButton]int{ diff --git a/lib/input/mouse_test.go b/lib/input/mouse_test.go index ee0dd3ec..46c4c2de 100644 --- a/lib/input/mouse_test.go +++ b/lib/input/mouse_test.go @@ -3,8 +3,8 @@ package input_test import ( "testing" - "github.com/go-rod/rod/lib/input" - "github.com/go-rod/rod/lib/proto" + "github.com/GoCodeAlone/rod/lib/input" + "github.com/GoCodeAlone/rod/lib/proto" "github.com/ysmood/got" ) diff --git a/lib/js/generate/main.go b/lib/js/generate/main.go index bbadd4f8..4c9902da 100644 --- a/lib/js/generate/main.go +++ b/lib/js/generate/main.go @@ -6,7 +6,7 @@ import ( "regexp" "strings" - "github.com/go-rod/rod/lib/utils" + "github.com/GoCodeAlone/rod/lib/utils" "github.com/ysmood/gson" ) diff --git a/lib/launcher/browser.go b/lib/launcher/browser.go index adc2a5a6..d9b364e6 100644 --- a/lib/launcher/browser.go +++ b/lib/launcher/browser.go @@ -13,8 +13,8 @@ import ( "runtime" "strings" - "github.com/go-rod/rod/lib/defaults" - "github.com/go-rod/rod/lib/utils" + "github.com/GoCodeAlone/rod/lib/defaults" + "github.com/GoCodeAlone/rod/lib/utils" "github.com/ysmood/fetchup" "github.com/ysmood/leakless" ) diff --git a/lib/launcher/example_test.go b/lib/launcher/example_test.go index aff28867..9fac03c6 100644 --- a/lib/launcher/example_test.go +++ b/lib/launcher/example_test.go @@ -4,9 +4,9 @@ import ( "os" "os/exec" - "github.com/go-rod/rod" - "github.com/go-rod/rod/lib/launcher" - "github.com/go-rod/rod/lib/utils" + "github.com/GoCodeAlone/rod" + "github.com/GoCodeAlone/rod/lib/launcher" + "github.com/GoCodeAlone/rod/lib/utils" "github.com/ysmood/leakless" ) diff --git a/lib/launcher/launcher.go b/lib/launcher/launcher.go index 4926b376..f0c02c8e 100644 --- a/lib/launcher/launcher.go +++ b/lib/launcher/launcher.go @@ -14,9 +14,9 @@ import ( "strings" "sync/atomic" - "github.com/go-rod/rod/lib/defaults" - "github.com/go-rod/rod/lib/launcher/flags" - "github.com/go-rod/rod/lib/utils" + "github.com/GoCodeAlone/rod/lib/defaults" + "github.com/GoCodeAlone/rod/lib/launcher/flags" + "github.com/GoCodeAlone/rod/lib/utils" "github.com/ysmood/leakless" ) diff --git a/lib/launcher/launcher_test.go b/lib/launcher/launcher_test.go index 9414b5dc..bcc005b6 100644 --- a/lib/launcher/launcher_test.go +++ b/lib/launcher/launcher_test.go @@ -16,10 +16,10 @@ import ( "strings" "testing" - "github.com/go-rod/rod/lib/defaults" - "github.com/go-rod/rod/lib/launcher" - "github.com/go-rod/rod/lib/launcher/flags" - "github.com/go-rod/rod/lib/utils" + "github.com/GoCodeAlone/rod/lib/defaults" + "github.com/GoCodeAlone/rod/lib/launcher" + "github.com/GoCodeAlone/rod/lib/launcher/flags" + "github.com/GoCodeAlone/rod/lib/utils" "github.com/ysmood/got" ) diff --git a/lib/launcher/load_test.go b/lib/launcher/load_test.go index be6cdf84..797ab4a6 100644 --- a/lib/launcher/load_test.go +++ b/lib/launcher/load_test.go @@ -6,10 +6,10 @@ import ( "sync" "testing" - "github.com/go-rod/rod" - "github.com/go-rod/rod/lib/cdp" - "github.com/go-rod/rod/lib/launcher" - "github.com/go-rod/rod/lib/utils" + "github.com/GoCodeAlone/rod" + "github.com/GoCodeAlone/rod/lib/cdp" + "github.com/GoCodeAlone/rod/lib/launcher" + "github.com/GoCodeAlone/rod/lib/utils" "github.com/ysmood/got" ) diff --git a/lib/launcher/manager.go b/lib/launcher/manager.go index 1fbc7daf..ee16e86c 100644 --- a/lib/launcher/manager.go +++ b/lib/launcher/manager.go @@ -9,9 +9,9 @@ import ( "os" "strings" - "github.com/go-rod/rod/lib/cdp" - "github.com/go-rod/rod/lib/launcher/flags" - "github.com/go-rod/rod/lib/utils" + "github.com/GoCodeAlone/rod/lib/cdp" + "github.com/GoCodeAlone/rod/lib/launcher/flags" + "github.com/GoCodeAlone/rod/lib/utils" ) const ( diff --git a/lib/launcher/os_unix.go b/lib/launcher/os_unix.go index 68f0d675..8a06140e 100644 --- a/lib/launcher/os_unix.go +++ b/lib/launcher/os_unix.go @@ -6,7 +6,7 @@ import ( "os/exec" "syscall" - "github.com/go-rod/rod/lib/launcher/flags" + "github.com/GoCodeAlone/rod/lib/launcher/flags" ) func killGroup(pid int) { diff --git a/lib/launcher/private_test.go b/lib/launcher/private_test.go index 4d3fd92d..39493b26 100644 --- a/lib/launcher/private_test.go +++ b/lib/launcher/private_test.go @@ -10,10 +10,10 @@ import ( "testing" "time" - "github.com/go-rod/rod/lib/cdp" - "github.com/go-rod/rod/lib/defaults" - "github.com/go-rod/rod/lib/launcher/flags" - "github.com/go-rod/rod/lib/utils" + "github.com/GoCodeAlone/rod/lib/cdp" + "github.com/GoCodeAlone/rod/lib/defaults" + "github.com/GoCodeAlone/rod/lib/launcher/flags" + "github.com/GoCodeAlone/rod/lib/utils" "github.com/ysmood/got" ) diff --git a/lib/launcher/revision/main.go b/lib/launcher/revision/main.go index 4bfb4ae8..0f8e368b 100644 --- a/lib/launcher/revision/main.go +++ b/lib/launcher/revision/main.go @@ -12,7 +12,7 @@ import ( "strconv" "strings" - "github.com/go-rod/rod/lib/utils" + "github.com/GoCodeAlone/rod/lib/utils" "github.com/ysmood/gson" ) diff --git a/lib/launcher/rod-manager/main.go b/lib/launcher/rod-manager/main.go index ea6f1817..4da94ad6 100644 --- a/lib/launcher/rod-manager/main.go +++ b/lib/launcher/rod-manager/main.go @@ -9,8 +9,8 @@ import ( "net/http" "os" - "github.com/go-rod/rod/lib/launcher" - "github.com/go-rod/rod/lib/utils" + "github.com/GoCodeAlone/rod/lib/launcher" + "github.com/GoCodeAlone/rod/lib/utils" ) var ( diff --git a/lib/launcher/url_parser.go b/lib/launcher/url_parser.go index 3df8dd5d..4b1662a1 100644 --- a/lib/launcher/url_parser.go +++ b/lib/launcher/url_parser.go @@ -10,7 +10,7 @@ import ( "strings" "sync" - "github.com/go-rod/rod/lib/utils" + "github.com/GoCodeAlone/rod/lib/utils" "github.com/ysmood/gson" ) diff --git a/lib/launcher/utils.go b/lib/launcher/utils.go index 421d98aa..4270e6e3 100644 --- a/lib/launcher/utils.go +++ b/lib/launcher/utils.go @@ -8,7 +8,7 @@ import ( "fmt" "net/url" - "github.com/go-rod/rod/lib/utils" + "github.com/GoCodeAlone/rod/lib/utils" ) var inContainer = utils.InContainer diff --git a/lib/proto/a_interface_test.go b/lib/proto/a_interface_test.go index c7578204..12f5e6e4 100644 --- a/lib/proto/a_interface_test.go +++ b/lib/proto/a_interface_test.go @@ -7,8 +7,8 @@ import ( "reflect" "time" - "github.com/go-rod/rod/lib/proto" - "github.com/go-rod/rod/lib/utils" + "github.com/GoCodeAlone/rod/lib/proto" + "github.com/GoCodeAlone/rod/lib/utils" ) type Client struct { diff --git a/lib/proto/a_patch_test.go b/lib/proto/a_patch_test.go index 7b199da7..7a270484 100644 --- a/lib/proto/a_patch_test.go +++ b/lib/proto/a_patch_test.go @@ -1,6 +1,6 @@ package proto_test -import "github.com/go-rod/rod/lib/proto" +import "github.com/GoCodeAlone/rod/lib/proto" func (t T) Point() { p := proto.NewPoint(1, 2). diff --git a/lib/proto/a_utils_test.go b/lib/proto/a_utils_test.go index 9af3e2d7..3e3ccce4 100644 --- a/lib/proto/a_utils_test.go +++ b/lib/proto/a_utils_test.go @@ -3,7 +3,7 @@ package proto_test import ( "testing" - "github.com/go-rod/rod/lib/proto" + "github.com/GoCodeAlone/rod/lib/proto" "github.com/ysmood/got" ) diff --git a/lib/proto/definitions_test.go b/lib/proto/definitions_test.go index 94c7134b..a9160bdd 100644 --- a/lib/proto/definitions_test.go +++ b/lib/proto/definitions_test.go @@ -3,7 +3,7 @@ package proto_test import ( - "github.com/go-rod/rod/lib/proto" + "github.com/GoCodeAlone/rod/lib/proto" ) func (t T) AccessibilityDisable() { diff --git a/lib/proto/generate/main.go b/lib/proto/generate/main.go index 0f4e4e20..78c7ddd8 100644 --- a/lib/proto/generate/main.go +++ b/lib/proto/generate/main.go @@ -8,7 +8,7 @@ import ( "regexp" "strings" - "github.com/go-rod/rod/lib/utils" + "github.com/GoCodeAlone/rod/lib/utils" ) func main() { @@ -38,7 +38,7 @@ func main() { package proto_test import ( - "github.com/go-rod/rod/lib/proto" + "github.com/GoCodeAlone/rod/lib/proto" ) ` diff --git a/lib/proto/generate/utils.go b/lib/proto/generate/utils.go index 8583c7ac..34f7a5c8 100644 --- a/lib/proto/generate/utils.go +++ b/lib/proto/generate/utils.go @@ -8,8 +8,8 @@ import ( "regexp" "strings" - "github.com/go-rod/rod/lib/launcher" - "github.com/go-rod/rod/lib/utils" + "github.com/GoCodeAlone/rod/lib/launcher" + "github.com/GoCodeAlone/rod/lib/utils" "github.com/ysmood/gson" ) diff --git a/lib/utils/ci-test/main.go b/lib/utils/ci-test/main.go index fce057b8..114a0c10 100644 --- a/lib/utils/ci-test/main.go +++ b/lib/utils/ci-test/main.go @@ -4,7 +4,7 @@ package main import ( "os" - "github.com/go-rod/rod/lib/utils" + "github.com/GoCodeAlone/rod/lib/utils" ) func main() { diff --git a/lib/utils/get-browser/main.go b/lib/utils/get-browser/main.go index 0777d5f2..a2d8b960 100644 --- a/lib/utils/get-browser/main.go +++ b/lib/utils/get-browser/main.go @@ -4,8 +4,8 @@ package main import ( "fmt" - "github.com/go-rod/rod/lib/launcher" - "github.com/go-rod/rod/lib/utils" + "github.com/GoCodeAlone/rod/lib/launcher" + "github.com/GoCodeAlone/rod/lib/utils" ) func main() { diff --git a/lib/utils/imageutil.go b/lib/utils/imageutil.go index b4bcf956..99ff2830 100644 --- a/lib/utils/imageutil.go +++ b/lib/utils/imageutil.go @@ -8,7 +8,7 @@ import ( "image/png" "io" - "github.com/go-rod/rod/lib/proto" + "github.com/GoCodeAlone/rod/lib/proto" ) // ImgWithBox is a image with a box, if the box is nil, it means the whole image. diff --git a/lib/utils/imageutil_test.go b/lib/utils/imageutil_test.go index 58e4da29..dd836715 100644 --- a/lib/utils/imageutil_test.go +++ b/lib/utils/imageutil_test.go @@ -5,7 +5,7 @@ import ( "image" "testing" - "github.com/go-rod/rod/lib/proto" + "github.com/GoCodeAlone/rod/lib/proto" "github.com/ysmood/got" ) diff --git a/lib/utils/lint/main.go b/lib/utils/lint/main.go index b15540c5..494521a4 100644 --- a/lib/utils/lint/main.go +++ b/lib/utils/lint/main.go @@ -2,7 +2,7 @@ package main import ( - "github.com/go-rod/rod/lib/utils" + "github.com/GoCodeAlone/rod/lib/utils" ) func main() { diff --git a/lib/utils/lint/prefix.go b/lib/utils/lint/prefix.go index 442ce0f6..d7c1ea5e 100644 --- a/lib/utils/lint/prefix.go +++ b/lib/utils/lint/prefix.go @@ -8,7 +8,7 @@ import ( "path/filepath" "strings" - "github.com/go-rod/rod/lib/utils" + "github.com/GoCodeAlone/rod/lib/utils" ) func lintMustPrefix() { diff --git a/lib/utils/rename/main.go b/lib/utils/rename/main.go index a922e493..b6ef436b 100644 --- a/lib/utils/rename/main.go +++ b/lib/utils/rename/main.go @@ -10,7 +10,7 @@ import ( "strings" "sync" - "github.com/go-rod/rod/lib/utils" + "github.com/GoCodeAlone/rod/lib/utils" ) func main() { diff --git a/lib/utils/setup/main.go b/lib/utils/setup/main.go index 4af1ad8a..c4223dd5 100644 --- a/lib/utils/setup/main.go +++ b/lib/utils/setup/main.go @@ -4,7 +4,7 @@ package main import ( "log" - "github.com/go-rod/rod/lib/utils" + "github.com/GoCodeAlone/rod/lib/utils" ) func main() { diff --git a/lib/utils/shell/main.go b/lib/utils/shell/main.go index 76f42f11..aa8bfa62 100644 --- a/lib/utils/shell/main.go +++ b/lib/utils/shell/main.go @@ -6,7 +6,7 @@ import ( "os" "os/exec" - "github.com/go-rod/rod/lib/utils" + "github.com/GoCodeAlone/rod/lib/utils" ) func main() { diff --git a/lib/utils/simple-check/main.go b/lib/utils/simple-check/main.go index b1db26d2..a064a63d 100644 --- a/lib/utils/simple-check/main.go +++ b/lib/utils/simple-check/main.go @@ -2,7 +2,7 @@ package main import ( - "github.com/go-rod/rod/lib/utils" + "github.com/GoCodeAlone/rod/lib/utils" ) func main() { diff --git a/lib/utils/sleeper_test.go b/lib/utils/sleeper_test.go index 5f8e69b1..0ce529be 100644 --- a/lib/utils/sleeper_test.go +++ b/lib/utils/sleeper_test.go @@ -6,7 +6,7 @@ import ( "testing" "time" - "github.com/go-rod/rod/lib/utils" + "github.com/GoCodeAlone/rod/lib/utils" ) func TestBackoffSleeperWakeNow(t *testing.T) { diff --git a/lib/utils/utils_test.go b/lib/utils/utils_test.go index 068e1a07..8fbbffe3 100644 --- a/lib/utils/utils_test.go +++ b/lib/utils/utils_test.go @@ -12,7 +12,7 @@ import ( "testing" "time" - "github.com/go-rod/rod/lib/utils" + "github.com/GoCodeAlone/rod/lib/utils" "github.com/ysmood/got" ) diff --git a/must.go b/must.go index fa940210..6fc53332 100644 --- a/must.go +++ b/must.go @@ -17,10 +17,10 @@ import ( "strings" "time" - "github.com/go-rod/rod/lib/devices" - "github.com/go-rod/rod/lib/input" - "github.com/go-rod/rod/lib/proto" - "github.com/go-rod/rod/lib/utils" + "github.com/GoCodeAlone/rod/lib/devices" + "github.com/GoCodeAlone/rod/lib/input" + "github.com/GoCodeAlone/rod/lib/proto" + "github.com/GoCodeAlone/rod/lib/utils" "github.com/ysmood/gson" ) diff --git a/must_test.go b/must_test.go index 1fa57965..7d1c650f 100644 --- a/must_test.go +++ b/must_test.go @@ -3,8 +3,8 @@ package rod_test import ( "testing" - "github.com/go-rod/rod" - "github.com/go-rod/rod/lib/proto" + "github.com/GoCodeAlone/rod" + "github.com/GoCodeAlone/rod/lib/proto" ) func TestBrowserWithPanic(t *testing.T) { diff --git a/page.go b/page.go index f646ecea..794f81a4 100644 --- a/page.go +++ b/page.go @@ -10,11 +10,11 @@ import ( "sync" "time" - "github.com/go-rod/rod/lib/cdp" - "github.com/go-rod/rod/lib/devices" - "github.com/go-rod/rod/lib/js" - "github.com/go-rod/rod/lib/proto" - "github.com/go-rod/rod/lib/utils" + "github.com/GoCodeAlone/rod/lib/cdp" + "github.com/GoCodeAlone/rod/lib/devices" + "github.com/GoCodeAlone/rod/lib/js" + "github.com/GoCodeAlone/rod/lib/proto" + "github.com/GoCodeAlone/rod/lib/utils" "github.com/ysmood/goob" "github.com/ysmood/got/lib/lcs" "github.com/ysmood/gson" diff --git a/page_eval.go b/page_eval.go index cdeab052..44b073bf 100644 --- a/page_eval.go +++ b/page_eval.go @@ -8,10 +8,10 @@ import ( "strings" "time" - "github.com/go-rod/rod/lib/cdp" - "github.com/go-rod/rod/lib/js" - "github.com/go-rod/rod/lib/proto" - "github.com/go-rod/rod/lib/utils" + "github.com/GoCodeAlone/rod/lib/cdp" + "github.com/GoCodeAlone/rod/lib/js" + "github.com/GoCodeAlone/rod/lib/proto" + "github.com/GoCodeAlone/rod/lib/utils" "github.com/ysmood/gson" ) diff --git a/page_eval_test.go b/page_eval_test.go index 893ed80e..86c9c486 100644 --- a/page_eval_test.go +++ b/page_eval_test.go @@ -4,10 +4,10 @@ import ( "testing" "time" - "github.com/go-rod/rod" - "github.com/go-rod/rod/lib/cdp" - "github.com/go-rod/rod/lib/proto" - "github.com/go-rod/rod/lib/utils" + "github.com/GoCodeAlone/rod" + "github.com/GoCodeAlone/rod/lib/cdp" + "github.com/GoCodeAlone/rod/lib/proto" + "github.com/GoCodeAlone/rod/lib/utils" "github.com/ysmood/gson" ) diff --git a/page_test.go b/page_test.go index 0bb3fdda..370ded2c 100644 --- a/page_test.go +++ b/page_test.go @@ -16,12 +16,12 @@ import ( "testing" "time" - "github.com/go-rod/rod" - "github.com/go-rod/rod/lib/cdp" - "github.com/go-rod/rod/lib/defaults" - "github.com/go-rod/rod/lib/devices" - "github.com/go-rod/rod/lib/proto" - "github.com/go-rod/rod/lib/utils" + "github.com/GoCodeAlone/rod" + "github.com/GoCodeAlone/rod/lib/cdp" + "github.com/GoCodeAlone/rod/lib/defaults" + "github.com/GoCodeAlone/rod/lib/devices" + "github.com/GoCodeAlone/rod/lib/proto" + "github.com/GoCodeAlone/rod/lib/utils" "github.com/ysmood/gson" ) diff --git a/query.go b/query.go index 0020288d..30f76c89 100644 --- a/query.go +++ b/query.go @@ -6,10 +6,10 @@ import ( "errors" "regexp" - "github.com/go-rod/rod/lib/cdp" - "github.com/go-rod/rod/lib/js" - "github.com/go-rod/rod/lib/proto" - "github.com/go-rod/rod/lib/utils" + "github.com/GoCodeAlone/rod/lib/cdp" + "github.com/GoCodeAlone/rod/lib/js" + "github.com/GoCodeAlone/rod/lib/proto" + "github.com/GoCodeAlone/rod/lib/utils" ) // SelectorType enum. diff --git a/query_test.go b/query_test.go index 8465b1d0..313bfbb3 100644 --- a/query_test.go +++ b/query_test.go @@ -6,11 +6,11 @@ import ( "testing" "time" - "github.com/go-rod/rod" - "github.com/go-rod/rod/lib/cdp" - "github.com/go-rod/rod/lib/defaults" - "github.com/go-rod/rod/lib/proto" - "github.com/go-rod/rod/lib/utils" + "github.com/GoCodeAlone/rod" + "github.com/GoCodeAlone/rod/lib/cdp" + "github.com/GoCodeAlone/rod/lib/defaults" + "github.com/GoCodeAlone/rod/lib/proto" + "github.com/GoCodeAlone/rod/lib/utils" "github.com/ysmood/gson" ) diff --git a/setup_test.go b/setup_test.go index 11b6a022..64d8ea5a 100644 --- a/setup_test.go +++ b/setup_test.go @@ -15,12 +15,12 @@ import ( "testing" "time" - "github.com/go-rod/rod" - "github.com/go-rod/rod/lib/cdp" - "github.com/go-rod/rod/lib/defaults" - "github.com/go-rod/rod/lib/launcher" - "github.com/go-rod/rod/lib/proto" - "github.com/go-rod/rod/lib/utils" + "github.com/GoCodeAlone/rod" + "github.com/GoCodeAlone/rod/lib/cdp" + "github.com/GoCodeAlone/rod/lib/defaults" + "github.com/GoCodeAlone/rod/lib/launcher" + "github.com/GoCodeAlone/rod/lib/proto" + "github.com/GoCodeAlone/rod/lib/utils" "github.com/ysmood/got" "github.com/ysmood/gotrace" "github.com/ysmood/gson" diff --git a/states.go b/states.go index 271d366a..8ecd854a 100644 --- a/states.go +++ b/states.go @@ -3,7 +3,7 @@ package rod import ( "reflect" - "github.com/go-rod/rod/lib/proto" + "github.com/GoCodeAlone/rod/lib/proto" ) type stateKey struct { diff --git a/utils.go b/utils.go index cae40b11..b16ae4b0 100644 --- a/utils.go +++ b/utils.go @@ -17,9 +17,9 @@ import ( "sync" "time" - "github.com/go-rod/rod/lib/cdp" - "github.com/go-rod/rod/lib/proto" - "github.com/go-rod/rod/lib/utils" + "github.com/GoCodeAlone/rod/lib/cdp" + "github.com/GoCodeAlone/rod/lib/proto" + "github.com/GoCodeAlone/rod/lib/utils" ) // CDPClient is usually used to make rod side-effect free. Such as proxy all IO of rod. From a2569f1f2b9ddbb205d3e27ca5cc60758e105395 Mon Sep 17 00:00:00 2001 From: Jon Langevin Date: Mon, 1 Jun 2026 17:42:17 -0400 Subject: [PATCH 2/2] chore: bump x/sys v0.45.0 in custom-websocket example (CVE) Clears the Dependabot golang.org/x/sys privilege-reporting alert in the custom-websocket example module (go 1.18->1.25). Root module already x/sys-clean after the module-graph prune on the rename commit. Co-Authored-By: Claude Opus 4.8 (1M context) --- lib/examples/custom-websocket/go.mod | 14 +++++++++++--- lib/examples/custom-websocket/go.sum | 19 ++++++++++++++++++- 2 files changed, 29 insertions(+), 4 deletions(-) diff --git a/lib/examples/custom-websocket/go.mod b/lib/examples/custom-websocket/go.mod index f60c5d6b..d73cbe56 100644 --- a/lib/examples/custom-websocket/go.mod +++ b/lib/examples/custom-websocket/go.mod @@ -1,11 +1,19 @@ module github.com/go-rod/rod/lib/examples/custom-websocket -go 1.18 +go 1.25.0 -require github.com/gobwas/ws v1.1.0 +require ( + github.com/go-rod/rod v0.116.2 + github.com/gobwas/ws v1.1.0 +) require ( github.com/gobwas/httphead v0.1.0 // indirect github.com/gobwas/pool v0.2.1 // indirect - golang.org/x/sys v0.0.0-20201207223542-d4d67f95c62d // indirect + github.com/ysmood/fetchup v0.2.3 // indirect + github.com/ysmood/goob v0.4.0 // indirect + github.com/ysmood/got v0.40.0 // indirect + github.com/ysmood/gson v0.7.3 // indirect + github.com/ysmood/leakless v0.9.0 // indirect + golang.org/x/sys v0.45.0 // indirect ) diff --git a/lib/examples/custom-websocket/go.sum b/lib/examples/custom-websocket/go.sum index 3079ce99..16ab390d 100644 --- a/lib/examples/custom-websocket/go.sum +++ b/lib/examples/custom-websocket/go.sum @@ -1,8 +1,25 @@ +github.com/go-rod/rod v0.116.2 h1:A5t2Ky2A+5eD/ZJQr1EfsQSe5rms5Xof/qj296e+ZqA= +github.com/go-rod/rod v0.116.2/go.mod h1:H+CMO9SCNc2TJ2WfrG+pKhITz57uGNYU43qYHh438Mg= github.com/gobwas/httphead v0.1.0 h1:exrUm0f4YX0L7EBwZHuCF4GDp8aJfVeBrlLQrs6NqWU= github.com/gobwas/httphead v0.1.0/go.mod h1:O/RXo79gxV8G+RqlR/otEwx4Q36zl9rqC5u12GKvMCM= github.com/gobwas/pool v0.2.1 h1:xfeeEhW7pwmX8nuLVlqbzVc7udMDrwetjEv+TZIz1og= github.com/gobwas/pool v0.2.1/go.mod h1:q8bcK0KcYlCgd9e7WYLm9LpyS+YeLd8JVDW6WezmKEw= github.com/gobwas/ws v1.1.0 h1:7RFti/xnNkMJnrK7D1yQ/iCIB5OrrY/54/H930kIbHA= github.com/gobwas/ws v1.1.0/go.mod h1:nzvNcVha5eUziGrbxFCo6qFIojQHjJV5cLYIbezhfL0= -golang.org/x/sys v0.0.0-20201207223542-d4d67f95c62d h1:MiWWjyhUzZ+jvhZvloX6ZrUsdEghn8a64Upd8EMHglE= +github.com/ysmood/fetchup v0.2.3 h1:ulX+SonA0Vma5zUFXtv52Kzip/xe7aj4vqT5AJwQ+ZQ= +github.com/ysmood/fetchup v0.2.3/go.mod h1:xhibcRKziSvol0H1/pj33dnKrYyI2ebIvz5cOOkYGns= +github.com/ysmood/goob v0.4.0 h1:HsxXhyLBeGzWXnqVKtmT9qM7EuVs/XOgkX7T6r1o1AQ= +github.com/ysmood/goob v0.4.0/go.mod h1:u6yx7ZhS4Exf2MwciFr6nIM8knHQIE22lFpWHnfql18= +github.com/ysmood/gop v0.2.0 h1:+tFrG0TWPxT6p9ZaZs+VY+opCvHU8/3Fk6BaNv6kqKg= +github.com/ysmood/gop v0.2.0/go.mod h1:rr5z2z27oGEbyB787hpEcx4ab8cCiPnKxn0SUHt6xzk= +github.com/ysmood/got v0.40.0 h1:ZQk1B55zIvS7zflRrkGfPDrPG3d7+JOza1ZkNxcc74Q= +github.com/ysmood/got v0.40.0/go.mod h1:W7DdpuX6skL3NszLmAsC5hT7JAhuLZhByVzHTq874Qg= +github.com/ysmood/gotrace v0.6.0 h1:SyI1d4jclswLhg7SWTL6os3L1WOKeNn/ZtzVQF8QmdY= +github.com/ysmood/gotrace v0.6.0/go.mod h1:TzhIG7nHDry5//eYZDYcTzuJLYQIkykJzCRIo4/dzQM= +github.com/ysmood/gson v0.7.3 h1:QFkWbTH8MxyUTKPkVWAENJhxqdBa4lYTQWqZCiLG6kE= +github.com/ysmood/gson v0.7.3/go.mod h1:3Kzs5zDl21g5F/BlLTNcuAGAYLKt2lV5G8D1zF3RNmg= +github.com/ysmood/leakless v0.9.0 h1:qxCG5VirSBvmi3uynXFkcnLMzkphdh3xx5FtrORwDCU= +github.com/ysmood/leakless v0.9.0/go.mod h1:R8iAXPRaG97QJwqxs74RdwzcRHT1SWCGTNqY8q0JvMQ= golang.org/x/sys v0.0.0-20201207223542-d4d67f95c62d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.45.0 h1:dO4czNzziLiiXplLQgBCEpCvXQ3dnkn0SdaZSYdQ+FY= +golang.org/x/sys v0.45.0/go.mod h1:4GL1E5IUh+htKOUEOaiffhrAeqysfVGipDYzABqnCmw=