Skip to content

Per-directory locking in target directory #15115

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
redactedontop opened this issue Jan 27, 2025 · 2 comments
Closed

Per-directory locking in target directory #15115

redactedontop opened this issue Jan 27, 2025 · 2 comments
Labels
A-layout Area: target output directory layout, naming, and organization C-feature-request Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted` S-triage Status: This issue is waiting on initial triage.

Comments

@redactedontop
Copy link

redactedontop commented Jan 27, 2025

Howdy! I'm gonna be going directly to the point, sorry if this is inadequate.

Problem

I have a system target directory (better than sccache as it's a bit faster, removes the need to fiddle around with portage to make it work, and works with crate types that invoke the system linker like dylib/bin and/or incremental compilation), which I enjoy a lot. Problem is, I can't do parallel rust compilations (once again, with portage) as cargo locks the whole target directory, and not just what it uses.

Proposed Solution

A flag/option (potentially set to true by default) to only lock the files in use, for the duration of use.

@redactedontop redactedontop added C-feature-request Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted` S-triage Status: This issue is waiting on initial triage. labels Jan 27, 2025
@redactedontop redactedontop changed the title Per-folder locking in target directory Per-directory locking in target directory Jan 27, 2025
@epage epage added the A-layout Area: target output directory layout, naming, and organization label Jan 27, 2025
@epage
Copy link
Contributor

epage commented Jan 27, 2025

This looks to be a duplicate of #4282 and so I'm closing in favor of that. If there is something I missed that sets this apart, let us know!

@epage epage closed this as completed Jan 27, 2025
@redactedontop
Copy link
Author

redactedontop commented Jan 27, 2025

Thanks for the quick response. I agree this issue's a duplicate.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
A-layout Area: target output directory layout, naming, and organization C-feature-request Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted` S-triage Status: This issue is waiting on initial triage.
Projects
None yet
Development

No branches or pull requests

2 participants