Skip to content

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

Merged
sylvestre merged 1 commit into
mainfrom
renovate/filetime-0.x-lockfile
May 16, 2026
Merged

chore(deps): update rust crate filetime to v0.2.29#12201
sylvestre merged 1 commit into
mainfrom
renovate/filetime-0.x-lockfile

Conversation

@renovate

@renovate renovate Bot commented May 9, 2026

Copy link
Copy Markdown
Contributor

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

github-actions Bot commented May 9, 2026

Copy link
Copy Markdown

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

xtqqczze commented May 9, 2026

Copy link
Copy Markdown
Contributor

@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

xtqqczze commented May 11, 2026

Copy link
Copy Markdown
Contributor

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

xtqqczze commented May 12, 2026

Copy link
Copy Markdown
Contributor

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

@sylvestre
sylvestre merged commit dd80f63 into main May 16, 2026
169 of 171 checks passed
@sylvestre
sylvestre deleted the renovate/filetime-0.x-lockfile branch May 16, 2026 20:19
nonontb pushed a commit to nonontb/coreutils that referenced this pull request May 28, 2026
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
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.

3 participants