Skip to content

cargo build cache is invalidated. #14485

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

Closed
jm-observer opened this issue Sep 2, 2024 · 1 comment
Closed

cargo build cache is invalidated. #14485

jm-observer opened this issue Sep 2, 2024 · 1 comment
Labels
A-filesystem Area: issues with filesystems A-rebuild-detection Area: rebuild detection and fingerprinting C-bug Category: bug S-triage Status: This issue is waiting on initial triage.

Comments

@jm-observer
Copy link

Problem

In a Windows environment, using Docker for cross-compilation can cause some of the compilation cache to become invalid.

Steps

  1. run command like this: docker run --rm -it -v D:\git\rathole:/root/src rust_aarch64-gcc_openssl:1.80.1_9.4.0_1.1.0l sh -c "cargo build --bin rathole --release -v "
  2. run command again.It will result in logs similar to the following:
Dirty libz-sys v1.1.12: the dependency build_script_build was rebuilt (1725281026.427356500s, 427356500ns after last build at 1725281026.000000000s)
Dirty rustversion v1.0.14: the file `target/release/build/rustversion-0bf5fffcec081f72/out/version.expr` has changed (1725281004.366127800s, 366127800ns after last build at 1725281004.000000000s)
  1. However, they shouldn't actually be considered changes.

Possible Solution(s)

No response

Notes

No response

Version

cargo 1.80.1 (376290515 2024-07-16)
release: 1.80.1
commit-hash: 37629051518c3df9ac2c1744589362a02ecafa99
commit-date: 2024-07-16
host: x86_64-unknown-linux-gnu
libgit2: 1.7.2 (sys:0.18.3 vendored)
libcurl: 8.6.0-DEV (sys:0.4.72+curl-8.6.0 vendored ssl:OpenSSL/1.1.1w)
ssl: OpenSSL 1.1.1w  11 Sep 2023
os: Ubuntu 16.4.0 [64-bit]
@jm-observer jm-observer added C-bug Category: bug S-triage Status: This issue is waiting on initial triage. labels Sep 2, 2024
@weihanglo
Copy link
Member

Thanks for the issue report. This is a known issue: #12060, and we have an open PR #13955. Close in favor of those.

@weihanglo weihanglo closed this as not planned Won't fix, can't repro, duplicate, stale Sep 2, 2024
@weihanglo weihanglo added A-rebuild-detection Area: rebuild detection and fingerprinting A-filesystem Area: issues with filesystems labels Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-filesystem Area: issues with filesystems A-rebuild-detection Area: rebuild detection and fingerprinting C-bug Category: bug S-triage Status: This issue is waiting on initial triage.
Projects
None yet
Development

No branches or pull requests

2 participants