Skip to content

[rush] "local" cache id is different for the same package on two different systems #5298

@kgetz-arista

Description

@kgetz-arista

Summary

The "local" cache id is not computed deterministically (or possibly has a dependency on the underlying OS being used).

Repro steps

  1. git clone a package on Windows 11
  2. git clone the same package on Debian 9
  3. Run rush build with --debug-build-cache-ids

Expected result: The cache ids should be the same

Actual result: The cache ids for the package are different because the "local" cache id is different:

97c97
< |local=7ab5ffa838014a433ddbadde704677bb453a1471
---
> |local=7b7726d01ff9f111b644c59aae6e8684fe87bae0
99c99
< Result: ccb217ffd1553947c43ec8c06c05cd3a779ed269
---
> Result: 08a35644c5992ce164e02fd6a1fca9e34d946f63

Details

Is there a way to get a more nuanced breakdown of hashes within the "local" cache id, so we can figure out what's different?

Standard questions

Please answer these questions to help us investigate your issue more quickly:

Question Answer
@microsoft/rush globally installed version? 5.157.0
rushVersion from rush.json? 5.157.0
Operating system? Windows 11, Linux
Would you consider contributing a PR? No
Node.js version (node -v)? 22.14.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Waiting for Author

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions