Skip to content

cargo build cache is invalidated. #14485

@jm-observer

Description

@jm-observer

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]

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-filesystemArea: issues with filesystemsA-rebuild-detectionArea: rebuild detection and fingerprintingC-bugCategory: bugS-triageStatus: This issue is waiting on initial triage.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions