From f3f3fdc9f3ba2312eaf72d1e45ab0d67ff746e92 Mon Sep 17 00:00:00 2001 From: Teodor Calin Date: Thu, 28 May 2026 15:55:07 -0700 Subject: [PATCH] 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. --- gateway.go | 2 +- go.mod | 4 +++- mapping.go | 2 +- service.go | 2 +- service_disabled.go | 2 +- zz_bridge_test.go | 2 +- zz_coverage_test.go | 4 ++-- zz_fuzz_gateway_test.go | 2 +- zz_gateway_test.go | 2 +- zz_log_test.go | 2 +- zz_mapping_test.go | 2 +- 11 files changed, 14 insertions(+), 12 deletions(-) diff --git a/gateway.go b/gateway.go index a4b30d6..ab2bf47 100644 --- a/gateway.go +++ b/gateway.go @@ -10,7 +10,7 @@ import ( "os" "sync" - "github.com/TeoSlayer/pilotprotocol/pkg/protocol" + "github.com/pilot-protocol/common/protocol" ) // DefaultPorts is the default set of ports the gateway proxies. diff --git a/go.mod b/go.mod index 0d4f1bd..a24cc9b 100644 --- a/go.mod +++ b/go.mod @@ -2,6 +2,8 @@ module github.com/pilot-protocol/gateway go 1.25.10 -require github.com/TeoSlayer/pilotprotocol v0.0.0 +require github.com/pilot-protocol/common v0.1.0 replace github.com/TeoSlayer/pilotprotocol => ../web4 + +replace github.com/pilot-protocol/common => ../common diff --git a/mapping.go b/mapping.go index 2dec0d4..004cba7 100644 --- a/mapping.go +++ b/mapping.go @@ -7,7 +7,7 @@ import ( "net" "sync" - "github.com/TeoSlayer/pilotprotocol/pkg/protocol" + "github.com/pilot-protocol/common/protocol" ) // MappingTable maps local IPs to Pilot addresses and vice versa. diff --git a/service.go b/service.go index 277f182..2e7e8bf 100644 --- a/service.go +++ b/service.go @@ -8,7 +8,7 @@ package gateway import ( "context" - "github.com/TeoSlayer/pilotprotocol/pkg/coreapi" + "github.com/pilot-protocol/common/coreapi" ) // Service is the L11 plugin lifecycle adapter for the gateway. The diff --git a/service_disabled.go b/service_disabled.go index 0a39782..2feb299 100644 --- a/service_disabled.go +++ b/service_disabled.go @@ -13,7 +13,7 @@ package gateway import ( "context" - "github.com/TeoSlayer/pilotprotocol/pkg/coreapi" + "github.com/pilot-protocol/common/coreapi" ) // Service is a no-op replacement for the (today-unused) plugin diff --git a/zz_bridge_test.go b/zz_bridge_test.go index 4abbad1..dcd76af 100644 --- a/zz_bridge_test.go +++ b/zz_bridge_test.go @@ -9,7 +9,7 @@ import ( "testing" "time" - "github.com/TeoSlayer/pilotprotocol/pkg/protocol" + "github.com/pilot-protocol/common/protocol" ) // pipeDialer returns one end of a net.Pipe per DialAddr call and stashes diff --git a/zz_coverage_test.go b/zz_coverage_test.go index c3f2382..4ae7454 100644 --- a/zz_coverage_test.go +++ b/zz_coverage_test.go @@ -15,8 +15,8 @@ import ( "testing" "time" - "github.com/TeoSlayer/pilotprotocol/pkg/coreapi" - "github.com/TeoSlayer/pilotprotocol/pkg/protocol" + "github.com/pilot-protocol/common/coreapi" + "github.com/pilot-protocol/common/protocol" ) // --------------------------------------------------------------------------- diff --git a/zz_fuzz_gateway_test.go b/zz_fuzz_gateway_test.go index 2318709..8c48e3b 100644 --- a/zz_fuzz_gateway_test.go +++ b/zz_fuzz_gateway_test.go @@ -7,7 +7,7 @@ import ( "sync" "testing" - "github.com/TeoSlayer/pilotprotocol/pkg/protocol" + "github.com/pilot-protocol/common/protocol" "github.com/pilot-protocol/gateway" ) diff --git a/zz_gateway_test.go b/zz_gateway_test.go index b7e4d08..c0d9b65 100644 --- a/zz_gateway_test.go +++ b/zz_gateway_test.go @@ -6,7 +6,7 @@ import ( "net" "testing" - "github.com/TeoSlayer/pilotprotocol/pkg/protocol" + "github.com/pilot-protocol/common/protocol" "github.com/pilot-protocol/gateway" ) diff --git a/zz_log_test.go b/zz_log_test.go index 464ffd0..83dbc66 100644 --- a/zz_log_test.go +++ b/zz_log_test.go @@ -9,7 +9,7 @@ import ( "strings" "testing" - "github.com/TeoSlayer/pilotprotocol/pkg/protocol" + "github.com/pilot-protocol/common/protocol" ) // TestListenPortWarnOnBindFailure regression-tests the log level for a diff --git a/zz_mapping_test.go b/zz_mapping_test.go index f61dbd4..1dfde84 100644 --- a/zz_mapping_test.go +++ b/zz_mapping_test.go @@ -7,7 +7,7 @@ import ( "strings" "testing" - "github.com/TeoSlayer/pilotprotocol/pkg/protocol" + "github.com/pilot-protocol/common/protocol" ) func TestNewMappingTable_InvalidCIDR(t *testing.T) {