chore(deps): update rust crate filetime to v0.2.29#12201
Conversation
|
GNU testsuite comparison: |
|
@alexcrichton Breaking change in filetime v0.2.28? |
|
That looks like it, yeah. Would you be able to reduce this down to a test case? |
|
It seems we do something like this: coreutils/tests/by-util/test_touch.rs Lines 831 to 833 in 94b06d9
|
|
Would you be able to generate a test that uses the fn main() {
let now = std::time::SystemTime::now();
dbg!(filetime::set_file_times(
"/dev/stdout",
now.into(),
now.into()
));
}passes locally for me for example (no error) |
|
I was able to reproduce the test failure locally on macOS, but I have not been able to identify where the error originates; full backtrace does not help and using a debugger was unfruitful. |
|
Sorry I'm not sure how best to handle this regression otherwise. Locally on macOS the small program I have above passes. Basically without knowing how |
|
Some data points for reference:
|
|
@alexcrichton OK I can reproduce, but only when running in the debugger: fn main() {
let now = std::time::SystemTime::now().into();
filetime::set_file_times("/dev/stdout", now, now).unwrap();
}This fails with filetime v0.0.28, but not v0.0.27 |
|
The issue is apparently with the standard library: fn main() {
std::fs::File::open("/dev/stdout").unwrap();
} |
|
@alexcrichton The issue is that |
|
Thanks! Would you be able to test out alexcrichton/filetime#122 and see if it works? |
With the following cargo patch, I can confirm all tests pass: [patch.crates-io]
filetime = { git = 'https://github.com/alexcrichton/filetime.git', branch = 'try-fix' } |
|
Thanks for testing! Published the fix now |
c25259e to
d3af5be
Compare
|
We may need to modify |
This PR contains the following updates:
0.2.27→0.2.29Release Notes
alexcrichton/filetime (filetime)
v0.2.29Compare Source
v0.2.28Compare Source
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.