From bfaed4f36d45db1ce4403fd85edf9b5103f972b7 Mon Sep 17 00:00:00 2001 From: Teodor Calin Date: Thu, 28 May 2026 15:55:08 -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. --- go/client/main.go | 4 ++-- go/echo/main.go | 2 +- go/go.mod | 2 +- go/httpclient/main.go | 4 ++-- go/secure/main.go | 6 +++--- go/webserver/main.go | 2 +- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/go/client/main.go b/go/client/main.go index 0a5aee2..1faa2dd 100644 --- a/go/client/main.go +++ b/go/client/main.go @@ -7,8 +7,8 @@ import ( "fmt" "log" - "github.com/TeoSlayer/pilotprotocol/pkg/driver" - "github.com/TeoSlayer/pilotprotocol/pkg/protocol" + "github.com/pilot-protocol/common/driver" + "github.com/pilot-protocol/common/protocol" ) func main() { diff --git a/go/echo/main.go b/go/echo/main.go index aa17f91..531b930 100644 --- a/go/echo/main.go +++ b/go/echo/main.go @@ -6,7 +6,7 @@ import ( "flag" "log" - "github.com/TeoSlayer/pilotprotocol/pkg/driver" + "github.com/pilot-protocol/common/driver" ) func main() { diff --git a/go/go.mod b/go/go.mod index dae89b2..700d113 100644 --- a/go/go.mod +++ b/go/go.mod @@ -2,7 +2,7 @@ module github.com/pilot-protocol/examples/go 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 diff --git a/go/httpclient/main.go b/go/httpclient/main.go index 1fa0ce2..08ae96c 100644 --- a/go/httpclient/main.go +++ b/go/httpclient/main.go @@ -8,8 +8,8 @@ import ( "io" "log" - "github.com/TeoSlayer/pilotprotocol/pkg/driver" - "github.com/TeoSlayer/pilotprotocol/pkg/protocol" + "github.com/pilot-protocol/common/driver" + "github.com/pilot-protocol/common/protocol" ) func main() { diff --git a/go/secure/main.go b/go/secure/main.go index 0e3156b..d0552d3 100644 --- a/go/secure/main.go +++ b/go/secure/main.go @@ -8,9 +8,9 @@ import ( "log" "net" - "github.com/TeoSlayer/pilotprotocol/pkg/driver" - "github.com/TeoSlayer/pilotprotocol/pkg/protocol" - "github.com/TeoSlayer/pilotprotocol/pkg/secure" + "github.com/pilot-protocol/common/driver" + "github.com/pilot-protocol/common/protocol" + "github.com/pilot-protocol/common/secure" ) func main() { diff --git a/go/webserver/main.go b/go/webserver/main.go index 3841298..de67962 100644 --- a/go/webserver/main.go +++ b/go/webserver/main.go @@ -8,7 +8,7 @@ import ( "log" "net/http" - "github.com/TeoSlayer/pilotprotocol/pkg/driver" + "github.com/pilot-protocol/common/driver" ) func main() {