beacon-biosignals / StableHashTraits.jl

Compute hashes over any Julia object simply and reproducibly
MIT License
7 stars 1 forks source link

Julia 1.10 hashs remain unstable: #51

Closed haberdashPI closed 7 months ago

haberdashPI commented 7 months ago

MWE:

julia> VERSION
v"1.10.0"

julia> using StableHashTraits; bytes2hex(stable_hash((; input_hash = "/n52cY4kWll77ptBTsaGPHZ674i+1IHbJ641JxJzBH0="); version=2))
"c331db74ec9c5f0734fc860a18d3bf6353516536697ef109a90329fca1cf69cc"
julia> VERSION
v"1.9.4"

julia> using StableHashTraits; bytes2hex(stable_hash((; input_hash = "/n52cY4kWll77ptBTsaGPHZ674i+1IHbJ641JxJzBH0="); version=2))
"f66d39a34e9102ef30c52e322c230e1457ad7802155aa895f907d70c6efec680"
haberdashPI commented 7 months ago

Investigating this and it appears to be a bug that affects named tuples with a single keyword.