You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: make mcpp.lock dependency hashes host-independent (#676)
The lock hash for an index dependency was computed with
std::hash<std::string>, whose output is implementation-defined: MSVC
implements it as FNV-1a while libstdc++/libc++ use MurmurHash. The same
dependency therefore landed in mcpp.lock with a different hash on Windows
and Linux, so a clean checkout showed a lock diff after every build while
the fnv1a: prefix was only true on MSVC.
Compute the digest with mcpp::toolchain::hash_string (FNV-1a on every
host), centralised as mcpp::pm::index_package_digest. The git-dependency
lock hash and the git cache directory key use the same deterministic hash.
Pin the cross-platform vectors in a unit test and add e2e assertions to
the SemVer project-index test.
0 commit comments