deps: switch shared types to common#6
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Mechanical migration: every
github.com/TeoSlayer/pilotprotocol/pkg/{coreapi,protocol,driver,registry/{client,wire},config,logging,urlvalidate,secure}import (and the previously-internalipcutil) is rewritten to use the canonicalgithub.com/pilot-protocol/common/<pkg>module.This is Phase 2 of the common-extraction migration. See
pilot-protocol/commonPR for Phase 1 (the actual package moves) andTeoSlayer/pilotprotocolPR for Phase 3 (web4 cleanup + duplicate deletion).Why
Today every sibling repo
requires theTeoSlayer/pilotprotocolhub for shared types. The hub in turnrequires every sibling for itscmd/daemonassembly. That's a locally-circular dep that only works because every repo hasreplace ... => ../web4for dev. At release time it forces coordinated tagging on every sibling+hub edit.Moving the shared types into
commonbreaks that cycle for the 13 leaf siblings (everything except handshake/runtime/libpilot which extend the daemon engine and stay tightly coupled topkg/daemon).What's in this PR
.gofile replacing 10 import paths.replace github.com/pilot-protocol/common => ../commonso local dev resolves against the local common checkout.go mod tidyclean.go build ./...passes.Merge order
This PR depends on the common-side PR (Phase 1) landing first so the new module paths actually resolve at the
common@vX.X.Xtag. Until then, localreplacekeeps everything working.🤖 Generated with Claude Code