-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rust: Because of wrong modified timestamp cargo rebuilds every time #524
Comments
Oh, could that be the reason why |
No, that sounds like something different. I'll try it, though. Update: That seems to be indeed a special case, behaves the same locally for me: https://spectrum.chat/gitpod/general/rust-rocket-web-server-port-not-served~cf954a11-8b39-4979-9ebb-5b02949ddf63?m=MTU1NjUyNDEyMzEyNw== |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Oh, forgot about this one. Will verify and see if I can fix it. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Here's a workaround, use the following task structure in tasks:
- name: Build and run
init: |
cargo build
# workaround for https://github.com/gitpod-io/gitpod/issues/524
find target -exec stat --format='%.Y %n' {} + > /workspace/.ts
command: |
# workaround for https://github.com/gitpod-io/gitpod/issues/524
while read -r ts file; do touch -d "@${ts}" "${file}"; done < /workspace/.ts
cargo run |
Modify time is not changed after workspace restart. As changes is inside component cc @kylos101 if we have any plan about next gen of workspace cluster ![]() |
👋 @mustard-mh , we probably won't replace workspace clusters for 2-3 more weeks, I think. |
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
touch test
stat test
stat test
Expected behavior
Workspace should have identical timestamps after restart.
The text was updated successfully, but these errors were encountered: