Skip to content

chore(deps): update rust crate filetime to v0.2.29#12201

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/filetime-0.x-lockfile
Open

chore(deps): update rust crate filetime to v0.2.29#12201
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/filetime-0.x-lockfile

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate Bot commented May 9, 2026

This PR contains the following updates:

Package Type Update Change
filetime workspace.dependencies patch 0.2.270.2.29

Release Notes

alexcrichton/filetime (filetime)

v0.2.29

Compare Source

v0.2.28

Compare Source


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 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.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 9, 2026

GNU testsuite comparison:

GNU test failed: tests/cp/preserve-mode. tests/cp/preserve-mode is passing on 'main'. Maybe you have to rebase?
GNU test failed: tests/misc/selinux. tests/misc/selinux is passing on 'main'. Maybe you have to rebase?
GNU test failed: tests/touch/empty-file. tests/touch/empty-file is passing on 'main'. Maybe you have to rebase?
GNU test failed: tests/touch/fifo. tests/touch/fifo is passing on 'main'. Maybe you have to rebase?
GNU test failed: tests/touch/no-rights. tests/touch/no-rights is passing on 'main'. Maybe you have to rebase?
Skip an intermittent issue tests/date/date-locale-hour (fails in this run but passes in the 'main' branch)
Skipping an intermittent issue tests/cut/bounded-memory (passes in this run but fails in the 'main' branch)
Skipping an intermittent issue tests/tail/inotify-dir-recreate (passes in this run but fails in the 'main' branch)
Skipping an intermittent issue tests/tail/retry (passes in this run but fails in the 'main' branch)
Skip an intermittent issue tests/pr/bounded-memory (was skipped on 'main', now failing)

@xtqqczze
Copy link
Copy Markdown
Contributor

xtqqczze commented May 9, 2026

@alexcrichton Breaking change in filetime v0.2.28?

  stderr ───

    thread 'test_touch::test_touch_changes_time_of_file_in_stdout' (70404) panicked at tests/by-util/test_touch.rs:844:10:
    Command was expected to succeed. code: 1
    stdout = 
     stderr = touch: setting times of '/dev/stdout': Permission denied

@alexcrichton
Copy link
Copy Markdown

That looks like it, yeah. Would you be able to reduce this down to a test case?

@xtqqczze
Copy link
Copy Markdown
Contributor

It seems we do something like this:

fn test_touch_changes_time_of_file_in_stdout() {
// command like: `touch - 1< ./c`
// should change the timestamp of c

touch has this highly confusing GNU/coreutils compatibility behavior:

A FILE argument string of - is handled specially and causes touch to change the times of the file associated with standard output.

@alexcrichton
Copy link
Copy Markdown

Would you be able to generate a test that uses the filetime crate? This program:

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)

@xtqqczze
Copy link
Copy Markdown
Contributor

xtqqczze commented May 11, 2026

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.

@alexcrichton
Copy link
Copy Markdown

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 filetime is being used I'm not sure how to fix a regression.

@xtqqczze
Copy link
Copy Markdown
Contributor

Some data points for reference:

@xtqqczze
Copy link
Copy Markdown
Contributor

xtqqczze commented May 12, 2026

@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();
}
thread 'main' (1901862) panicked at src/main.rs:3:55:
called `Result::unwrap()` on an `Err` value: Os { code: 13, kind: PermissionDenied, message: "Permission denied" }

This fails with filetime v0.0.28, but not v0.0.27

@xtqqczze
Copy link
Copy Markdown
Contributor

The issue is apparently with the standard library:

fn main() {
    std::fs::File::open("/dev/stdout").unwrap();
}
thread 'main' (1933986) panicked at src/main.rs:2:40:
called `Result::unwrap()` on an `Err` value: Os { code: 13, kind: PermissionDenied, message: "Permission denied" }

@xtqqczze
Copy link
Copy Markdown
Contributor

@alexcrichton The issue is that filetime::set_file_times attempts to open the file for reading, which fails for stdout.

@alexcrichton
Copy link
Copy Markdown

Thanks! Would you be able to test out alexcrichton/filetime#122 and see if it works?

@xtqqczze
Copy link
Copy Markdown
Contributor

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' }

@alexcrichton
Copy link
Copy Markdown

Thanks for testing! Published the fix now

@renovate renovate Bot force-pushed the renovate/filetime-0.x-lockfile branch from c25259e to d3af5be Compare May 13, 2026 01:36
@renovate renovate Bot changed the title chore(deps): update rust crate filetime to v0.2.28 chore(deps): update rust crate filetime to v0.2.29 May 13, 2026
@xtqqczze
Copy link
Copy Markdown
Contributor

We may need to modify Cargo.toml as well unless filetime 0.2.28 is yanked.

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