From 000b0b17ffa8a9b39a0866a967193160639404fe 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. --- go.mod | 4 +++- service.go | 2 +- service_disabled.go | 2 +- zz_micro_branches_test.go | 2 +- zz_more_test.go | 2 +- 5 files changed, 7 insertions(+), 5 deletions(-) diff --git a/go.mod b/go.mod index 4b105f7..83556c8 100644 --- a/go.mod +++ b/go.mod @@ -2,6 +2,8 @@ module github.com/pilot-protocol/skillinject 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/service.go b/service.go index 192f5ef..4be5dec 100644 --- a/service.go +++ b/service.go @@ -13,7 +13,7 @@ package skillinject import ( "context" - "github.com/TeoSlayer/pilotprotocol/pkg/coreapi" + "github.com/pilot-protocol/common/coreapi" ) diff --git a/service_disabled.go b/service_disabled.go index 256e515..232d046 100644 --- a/service_disabled.go +++ b/service_disabled.go @@ -12,7 +12,7 @@ package skillinject import ( "context" - "github.com/TeoSlayer/pilotprotocol/pkg/coreapi" + "github.com/pilot-protocol/common/coreapi" ) // Service is a no-op replacement for the real plugin Service. Same diff --git a/zz_micro_branches_test.go b/zz_micro_branches_test.go index 689b5c5..8e851cc 100644 --- a/zz_micro_branches_test.go +++ b/zz_micro_branches_test.go @@ -35,7 +35,7 @@ import ( "testing" "time" - "github.com/TeoSlayer/pilotprotocol/pkg/coreapi" + "github.com/pilot-protocol/common/coreapi" ) // verifyMarshalRoundTrip: bytes have our id in allow but the entry diff --git a/zz_more_test.go b/zz_more_test.go index 1f2c36a..ce1414f 100644 --- a/zz_more_test.go +++ b/zz_more_test.go @@ -13,7 +13,7 @@ import ( "testing" "time" - "github.com/TeoSlayer/pilotprotocol/pkg/coreapi" + "github.com/pilot-protocol/common/coreapi" ) func TestSetEnabled_RoundtripsThroughDisk(t *testing.T) {