Skip to content

Rust: Because of wrong modified timestamp cargo rebuilds every time #524

Open
@geropl

Description

@geropl

Describe the bug
Between workspace restarts, the precision of the 'modified' timestamp on files under /workspace degrades from nanosecond to second precision.

As of now, cargo relies on this timestamp to detect dirty dependencies. The effect is that cargo rebuilds the whole project including all dependencies on each restart because it things the present artifacts are outdated.

To Reproduce

  1. Create new workspace
  2. touch test
  3. stat test
  4. Stop and restart workspace
  5. stat test

Expected behavior
Workspace should have identical timestamps after restart.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions