Skip to content

crate_universe: Fix workspace root detection#3813

Open
phlax wants to merge 1 commit intobazelbuild:mainfrom
phlax:spin-out-no
Open

crate_universe: Fix workspace root detection#3813
phlax wants to merge 1 commit intobazelbuild:mainfrom
phlax:spin-out-no

Conversation

@phlax
Copy link

@phlax phlax commented Jan 21, 2026

without this, updating the crate triggers a reanalysis, causing recursion and the task to spin out, hang and fail

without this, updating the crate triggers a reanalysis, causing
recursion and the task to recurse, spin out, hang and fail

Signed-off-by: Ryan Northey <ryan@synca.io>
Copy link
Collaborator

@UebelAndre UebelAndre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry about the delay here! Can you tell me about the root cause of the issue here? Like what triggers the recursion?


# The workspace root when one is explicitly provided.
nonhermetic_root_bazel_workspace_dir = module_ctx.path(Label("@@//:MODULE.bazel")).dirname
nonhermetic_root_bazel_workspace_dir = module_ctx.path(Label("@@//:BUILD")).dirname
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Most repositories I interact with use BUILD.bazel as the file name, I think this is going to be less consistent for folks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants