Skip to content

"build directory locked" should say which process is holding the lock #107077

Description

@jyn514

Since #88310, we don't allow multiple processes of bootstrap to run in parallel. That's good to avoid issues like #76661, but means that people sometimes don't know why the build directory is locked (e.g. if they're running rust-analyzer in the background or running x in two terminals at once). We should make it easier to figure this out.

In the short-term, ps -u $USER | grep bootstrap/debug/bootstrap on Unix will show all the relevant processes. In the long-term, and to support windows, we might want to run the equivalent of that ourselves and directly print all relevant PIDs.

Activity

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

Metadata

Metadata

Assignees

Labels

A-contributor-roadblockArea: Makes things more difficult for new or seasoned contributors to RustC-enhancementCategory: An issue proposing an enhancement or a PR with one.E-mediumCall for participation: Medium difficulty. Experience needed to fix: Intermediate.E-mentorCall for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions