From 2d08a7b2a5f6cac4e3c6fe9f557fd923a23d29da Mon Sep 17 00:00:00 2001 From: Teodor Calin Date: Thu, 28 May 2026 15:55:07 -0700 Subject: [PATCH 1/2] deps: switch shared types from web4 hub to common MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Mechanical sed sweep replacing every github.com/TeoSlayer/pilotprotocol/pkg/{coreapi,protocol,driver,registry/client,registry/wire,config,logging,urlvalidate,secure} and github.com/TeoSlayer/pilotprotocol/internal/ipcutil with the equivalent github.com/pilot-protocol/common/. Adds a local replace directive so dev still resolves against the local common checkout. The hub require for TeoSlayer/pilotprotocol remains for now (handshake/runtime/libpilot keep their pkg/daemon import; the rest will be cleaned up when web4 itself migrates in Phase 3 — see common/extract-shared-types-from-web4 branch). go build ./... passes. --- cmd/beacon/main.go | 4 ++-- go.mod | 3 ++- go.sum | 2 -- server.go | 2 +- server_test.go | 2 +- zz_compat_wss_test.go | 2 +- zz_fuzz_beacon_test.go | 2 +- zz_fuzz_handle_packet_test.go | 2 +- zz_server_branches_test.go | 2 +- 9 files changed, 10 insertions(+), 11 deletions(-) diff --git a/cmd/beacon/main.go b/cmd/beacon/main.go index b751409..cc3aee6 100644 --- a/cmd/beacon/main.go +++ b/cmd/beacon/main.go @@ -12,8 +12,8 @@ import ( "syscall" "github.com/pilot-protocol/beacon" - "github.com/TeoSlayer/pilotprotocol/pkg/config" - "github.com/TeoSlayer/pilotprotocol/pkg/logging" + "github.com/pilot-protocol/common/config" + "github.com/pilot-protocol/common/logging" ) func main() { diff --git a/go.mod b/go.mod index 0d35ca4..f3dbfbc 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,6 @@ module github.com/pilot-protocol/beacon go 1.25.10 require ( - github.com/TeoSlayer/pilotprotocol v0.0.0 github.com/coder/websocket v1.8.14 github.com/pilot-protocol/common v0.1.0 golang.org/x/net v0.55.0 @@ -12,3 +11,5 @@ require ( require golang.org/x/sys v0.45.0 // indirect replace github.com/TeoSlayer/pilotprotocol => ../web4 + +replace github.com/pilot-protocol/common => ../common diff --git a/go.sum b/go.sum index b981195..b5e9323 100644 --- a/go.sum +++ b/go.sum @@ -1,7 +1,5 @@ github.com/coder/websocket v1.8.14 h1:9L0p0iKiNOibykf283eHkKUHHrpG7f65OE3BhhO7v9g= github.com/coder/websocket v1.8.14/go.mod h1:NX3SzP+inril6yawo5CQXx8+fk145lPDC6pumgx0mVg= -github.com/pilot-protocol/common v0.1.0 h1:m8mZZATgeBiFoqhWXPnskw2u0lNkWxHp0IagZK35V1g= -github.com/pilot-protocol/common v0.1.0/go.mod h1:4YZWHK5nhM+4RLmYTspLxxAFbyBII7yzQDAHq3Ul2ck= golang.org/x/net v0.55.0 h1:bcvxaJn3e1U6InsFWt1JUq1aSjnRxLzT2rtD2KfkDF8= golang.org/x/net v0.55.0/go.mod h1:L5U2KuzuOe1lY7Z+aWVIKK6qEeJXnXV9yzGA+WCHJww= golang.org/x/sys v0.45.0 h1:dO4czNzziLiiXplLQgBCEpCvXQ3dnkn0SdaZSYdQ+FY= diff --git a/server.go b/server.go index dc6d86a..b8d9fa4 100644 --- a/server.go +++ b/server.go @@ -18,7 +18,7 @@ import ( "golang.org/x/net/ipv4" bwss "github.com/pilot-protocol/beacon/wss" - "github.com/TeoSlayer/pilotprotocol/pkg/protocol" + "github.com/pilot-protocol/common/protocol" ) // beaconNode tracks a node's observed endpoint and when it was last seen. diff --git a/server_test.go b/server_test.go index d5370a3..572ee6b 100644 --- a/server_test.go +++ b/server_test.go @@ -10,7 +10,7 @@ import ( "testing" "time" - "github.com/TeoSlayer/pilotprotocol/pkg/protocol" + "github.com/pilot-protocol/common/protocol" ) // helper: send a discover message to register a node with a beacon diff --git a/zz_compat_wss_test.go b/zz_compat_wss_test.go index a636432..489439b 100644 --- a/zz_compat_wss_test.go +++ b/zz_compat_wss_test.go @@ -15,7 +15,7 @@ import ( "github.com/coder/websocket" - "github.com/TeoSlayer/pilotprotocol/pkg/protocol" + "github.com/pilot-protocol/common/protocol" "github.com/pilot-protocol/common/crypto" ) diff --git a/zz_fuzz_beacon_test.go b/zz_fuzz_beacon_test.go index bce44d5..3d94081 100644 --- a/zz_fuzz_beacon_test.go +++ b/zz_fuzz_beacon_test.go @@ -8,7 +8,7 @@ import ( "testing" "time" - "github.com/TeoSlayer/pilotprotocol/pkg/protocol" + "github.com/pilot-protocol/common/protocol" "github.com/pilot-protocol/beacon" ) diff --git a/zz_fuzz_handle_packet_test.go b/zz_fuzz_handle_packet_test.go index a6e9d8d..7c1e728 100644 --- a/zz_fuzz_handle_packet_test.go +++ b/zz_fuzz_handle_packet_test.go @@ -9,7 +9,7 @@ import ( "testing" "time" - "github.com/TeoSlayer/pilotprotocol/pkg/protocol" + "github.com/pilot-protocol/common/protocol" "github.com/pilot-protocol/beacon" ) diff --git a/zz_server_branches_test.go b/zz_server_branches_test.go index 5458f06..110f6fa 100644 --- a/zz_server_branches_test.go +++ b/zz_server_branches_test.go @@ -9,7 +9,7 @@ import ( "testing" "time" - "github.com/TeoSlayer/pilotprotocol/pkg/protocol" + "github.com/pilot-protocol/common/protocol" ) // TestClose_DoneChannelIdempotent pins the `select` fallthrough From 9859ca368254b9f4e59db088a95b66db260ebc49 Mon Sep 17 00:00:00 2001 From: Teodor Calin Date: Thu, 28 May 2026 16:04:53 -0700 Subject: [PATCH 2/2] deps: pin common v0.2.0 --- go.mod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go.mod b/go.mod index f3dbfbc..531bc95 100644 --- a/go.mod +++ b/go.mod @@ -4,7 +4,7 @@ go 1.25.10 require ( github.com/coder/websocket v1.8.14 - github.com/pilot-protocol/common v0.1.0 + github.com/pilot-protocol/common v0.2.0 golang.org/x/net v0.55.0 )