Repository navigation
fix: move canonical_box_name into box_registry - #2344
Merged
norrietaylor merged 1 commit intoOct 19, 2026
Merged
norrietaylor merged 1 commit into
norrietaylor merged 1 commit into
Conversation
box_registry imported net::answerer::canonical_box_name while answerer imported box_registry's types, so the two modules imported each other. The helper belongs with the registry that holds the rows it names: move it to box_registry, keep the one-directional edge (answerer imports box_registry), and repoint the two fully-qualified call sites and the intra-doc links. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
norrietaylor
approved these changes
Oct 19, 2026
norrietaylor
enabled auto-merge
October 19, 2026 07:52
norrietaylor
deleted the
inbox-patch/canonical-box-name-into-box-registry-3ce33309c9ba8f2a
branch
October 19, 2026 09:06
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.
Routing-Key: inbox-route/I_kwDOSUhdos8AAAABYJPqGA
crates/minvmd/src/box_registry.rsandcrates/minvmd/src/net/answerer.rsimported each other: box_registry pulled
canonical_box_namefromnet::answerer, while answerer pulledBoxRegistryandis_host_answerablefrom box_registry — an import cycle between theregistry and the answerer that resolve into one crate anyway.
The helper belongs with the registry that holds the rows it names, so
this moves it verbatim (with its doc comment) from
net::answerertobox_registry, folds answerer's use into its existingbox_registryimport, and repoints the two fully-qualified call sites and the
intra-doc links that named the old path. The import edge is now
one-directional:
net::answererimports frombox_registry, andbox_registryno longer imports fromnet::answererat all.Verification
cargo fmt --all --check --manifest-path target/Cargo.toml— cleancargo clippy --workspace --all-targets --locked --manifest-path target/Cargo.toml -- -D warnings— cleancargo test --locked --manifest-path target/Cargo.toml -p minvmd— 575 passed, 3 failed; the 3 (a_warned_daemon_announces_its_first_registration,answerer_service_forgets_rows_of_a_gone_node,resolve_uds_path_lives_in_provider_dir) fail identically on unmodifiedmainundercargo test's shared-process runner — they install a global tracing subscriber / mutateXDG_STATE_HOMEand expect the process-per-test model ofcargo nextest, the runnerjust testusesgrep -n "use crate::net::answerer" crates/minvmd/src/box_registry.rs— no matches: the cycle edge is gonecargo nextestis not installed on this runner, so the suite was runwith
cargo test; the same three tests fail the same way before andafter this change.
Summary by CodeRabbit