Nx
Enterprise
Nx
fix: sort object keys before JSON.stringify in transformProjectGraphForRust JSON.stringify() preserves JavaScript object key insertion order. The Rust native hasher receives these serialized strings and hashes them as-is for ProjectConfiguration. If any plugin or the target-defaults merge produces options/configurations objects with keys in a different insertion order on different CI runners, the serialized string changes, causing the ProjectConfiguration hash to become non-deterministic. This leads to Nx Cloud cache invalidation and unnecessary task re-execution when rerunning failed CI pipelines. The fix adds a recursive sortObjectKeys helper that normalizes key order before serialization, making the hash independent of JS object construction order. Fixes nrwl/nx#35297
nx-cloud record -- nx sync:check
Sign in / Sign up
Open main menu
Succeeded
CI Pipeline Execution
1 run failed
nx-cloud record -- nx sync:check
Click to copy
Linux
4 CPU cores
5447bbbc
35298