Skip to content

Commit dae7451

Browse files
TeoSlayerteovl
andauthored
deps: switch shared types from web4 hub to common (#3)
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/<pkg>. 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. Co-authored-by: Teodor Calin <teodor@vulturelabs.io>
1 parent ebb39a5 commit dae7451

6 files changed

Lines changed: 10 additions & 10 deletions

File tree

go/client/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import (
77
"fmt"
88
"log"
99

10-
"github.com/TeoSlayer/pilotprotocol/pkg/driver"
11-
"github.com/TeoSlayer/pilotprotocol/pkg/protocol"
10+
"github.com/pilot-protocol/common/driver"
11+
"github.com/pilot-protocol/common/protocol"
1212
)
1313

1414
func main() {

go/echo/main.go

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

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

1212
func main() {

go/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ module github.com/pilot-protocol/examples/go
22

33
go 1.25.10
44

5-
require github.com/TeoSlayer/pilotprotocol v0.0.0
5+
require github.com/pilot-protocol/common v0.1.0
66

77
replace github.com/TeoSlayer/pilotprotocol => ../../web4
88

go/httpclient/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import (
88
"io"
99
"log"
1010

11-
"github.com/TeoSlayer/pilotprotocol/pkg/driver"
12-
"github.com/TeoSlayer/pilotprotocol/pkg/protocol"
11+
"github.com/pilot-protocol/common/driver"
12+
"github.com/pilot-protocol/common/protocol"
1313
)
1414

1515
func main() {

go/secure/main.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ import (
88
"log"
99
"net"
1010

11-
"github.com/TeoSlayer/pilotprotocol/pkg/driver"
12-
"github.com/TeoSlayer/pilotprotocol/pkg/protocol"
13-
"github.com/TeoSlayer/pilotprotocol/pkg/secure"
11+
"github.com/pilot-protocol/common/driver"
12+
"github.com/pilot-protocol/common/protocol"
13+
"github.com/pilot-protocol/common/secure"
1414
)
1515

1616
func main() {

go/webserver/main.go

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

11-
"github.com/TeoSlayer/pilotprotocol/pkg/driver"
11+
"github.com/pilot-protocol/common/driver"
1212
)
1313

1414
func main() {

0 commit comments

Comments
 (0)