Skip to content

Conversation

weihanglo
Copy link
Member

What does this PR try to resolve?

Replace flock with std flock.

How to test and review this PR?

Given we've supported Oracle since 2022-12 and don't want to break people,
this is blocked on std supporting flock emulation via fcntl rust-lang/rust#146269

Given we've supported Oracle since 2022-12
and don't want to break people,
this is blocked on std supporting flock emulation via fcntl
rust-lang/rust 146269
@rustbot
Copy link
Collaborator

rustbot commented Sep 6, 2025

r? @ehuss

rustbot has assigned @ehuss.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@weihanglo weihanglo marked this pull request as draft September 6, 2025 11:50
@rustbot rustbot added A-filesystem Area: issues with filesystems S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Sep 6, 2025
@weihanglo
Copy link
Member Author

rust-lang/rust#146269 merged.

@weihanglo weihanglo marked this pull request as ready for review September 8, 2025 00:15
Copy link
Contributor

@ehuss ehuss left a comment

Choose a reason for hiding this comment

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

Thanks!

@ehuss ehuss added this pull request to the merge queue Sep 8, 2025
Merged via the queue into rust-lang:master with commit a9e120f Sep 8, 2025
25 checks passed
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Sep 8, 2025
github-merge-queue bot pushed a commit that referenced this pull request Sep 9, 2025
### What does this PR try to resolve?

This is a follow-up of <#15935>.

Before this Cargo invokes syscalls and check whether it gets ENOTSUP to
determine flock is unsupported. However, now the "unsupported platforms"
are pre-defined by libstd. Cargo should perhaps return unsupported if a
platform is marked unsupported by libstd.

Without this, some people on Termux may be affected I guess?

See
https://github.com/rust-lang/rust/blob/e9b6085088fd671ecfbe4cbebe1d26796d8bfa30/library/std/src/sys/fs/unix.rs#L1395-L1410
bors added a commit to rust-lang/rust that referenced this pull request Sep 10, 2025
Update cargo submodule

10 commits in 761c4658d0079d607e6d33cf0c060e61a617cad3..98402ac7a41dd0f564d3e56d58180d325d0417a0
2025-09-04 01:25:01 +0000 to 2025-09-09 20:19:39 +0000
- fix(flock): check if they are marked unsupported in libstd (rust-lang/cargo#15941)
- test(manifest): Fix test output order (rust-lang/cargo#15940)
- refactor(shell): Simplify some code (rust-lang/cargo#15937)
- fix(manifest): Report script manifest errors for the right line number (rust-lang/cargo#15927)
- refactor: replace flock with std flock (rust-lang/cargo#15935)
- fix(cli): Adjust messages to match rustc  (rust-lang/cargo#15928)
- fix: Switch from --nocapture to --no-capture (rust-lang/cargo#15930)
- Render individual compilation sections in `--timings` pipeline graph (rust-lang/cargo#15923)
- test(credential): Switch more expected results to snapshots (rust-lang/cargo#15929)
- refactor(cli): Pull out error chain iteration (rust-lang/cargo#15926)

r? ghost
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-filesystem Area: issues with filesystems
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants