Skip to content

Commit b857a1a

Browse files
TeoSlayerteovl
andauthored
deps: switch shared types to common (#3)
* deps: switch shared types from web4 hub to common Same migration as the other siblings: replace github.com/TeoSlayer/pilotprotocol/pkg/{coreapi,protocol,driver,registry/{client,wire},config,logging,urlvalidate,secure} and the ipcutil import path with the canonical common module. Unlike the leaf siblings, this repo keeps its github.com/TeoSlayer/pilotprotocol/pkg/daemon import because the sibling implements daemon plugin code that is tightly coupled to the daemon engine. That cycle is intentional for now — handshake, runtime, and libpilot are co-built with web4, not independent releases. go build ./... passes. * deps: pin common v0.2.0 --------- Co-authored-by: Teodor Calin <teodor@vulturelabs.io>
1 parent 78e5356 commit b857a1a

11 files changed

Lines changed: 16 additions & 14 deletions

events.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
package runtime
44

55
import (
6-
"github.com/TeoSlayer/pilotprotocol/pkg/coreapi"
6+
"github.com/pilot-protocol/common/coreapi"
77
"github.com/TeoSlayer/pilotprotocol/pkg/daemon"
88
)
99

go.mod

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@ require (
1111
require (
1212
github.com/coder/websocket v1.8.14 // indirect
1313
github.com/expr-lang/expr v1.17.8 // indirect
14-
github.com/pilot-protocol/common v0.1.0 // indirect
14+
github.com/pilot-protocol/common v0.2.0 // indirect
1515
github.com/pilot-protocol/trustedagents v0.1.0 // indirect
1616
)
1717

1818
replace github.com/TeoSlayer/pilotprotocol => ../web4
19+
20+
replace github.com/pilot-protocol/common => ../common

handshake.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ import (
77
"fmt"
88
"time"
99

10-
"github.com/TeoSlayer/pilotprotocol/pkg/coreapi"
10+
"github.com/pilot-protocol/common/coreapi"
1111
"github.com/TeoSlayer/pilotprotocol/pkg/daemon"
12-
"github.com/TeoSlayer/pilotprotocol/pkg/protocol"
13-
registryclient "github.com/TeoSlayer/pilotprotocol/pkg/registry/client"
12+
"github.com/pilot-protocol/common/protocol"
13+
registryclient "github.com/pilot-protocol/common/registry/client"
1414
"github.com/pilot-protocol/handshake"
1515
)
1616

identity.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"crypto/ed25519"
77
"errors"
88

9-
"github.com/TeoSlayer/pilotprotocol/pkg/coreapi"
9+
"github.com/pilot-protocol/common/coreapi"
1010
"github.com/TeoSlayer/pilotprotocol/pkg/daemon"
1111
)
1212

policy_manager.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
package runtime
44

55
import (
6-
"github.com/TeoSlayer/pilotprotocol/pkg/coreapi"
6+
"github.com/pilot-protocol/common/coreapi"
77
"github.com/TeoSlayer/pilotprotocol/pkg/daemon"
88
)
99

runtime.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ package runtime
1313
import (
1414
"context"
1515

16-
"github.com/TeoSlayer/pilotprotocol/pkg/coreapi"
16+
"github.com/pilot-protocol/common/coreapi"
1717
"github.com/TeoSlayer/pilotprotocol/pkg/daemon"
1818
)
1919

streams.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"context"
77
"errors"
88

9-
"github.com/TeoSlayer/pilotprotocol/pkg/coreapi"
9+
"github.com/pilot-protocol/common/coreapi"
1010
"github.com/TeoSlayer/pilotprotocol/pkg/daemon"
1111
)
1212

zz_deps_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"testing"
99
"time"
1010

11-
"github.com/TeoSlayer/pilotprotocol/pkg/coreapi"
11+
"github.com/pilot-protocol/common/coreapi"
1212
"github.com/TeoSlayer/pilotprotocol/pkg/daemon"
1313
"github.com/pilot-protocol/runtime"
1414
)

zz_listener_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"testing"
77
"time"
88

9-
"github.com/TeoSlayer/pilotprotocol/pkg/coreapi"
9+
"github.com/pilot-protocol/common/coreapi"
1010
"github.com/TeoSlayer/pilotprotocol/pkg/daemon"
1111
"github.com/pilot-protocol/runtime"
1212
)

zz_policy_manager_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"errors"
77
"testing"
88

9-
"github.com/TeoSlayer/pilotprotocol/pkg/coreapi"
9+
"github.com/pilot-protocol/common/coreapi"
1010
"github.com/pilot-protocol/runtime"
1111
)
1212

0 commit comments

Comments
 (0)