CloudCannon / pagefind

Static low-bandwidth search at scale
https://pagefind.app
MIT License
3.22k stars 97 forks source link

Pagefind 1.1.0 output is not stable #638

Open sebbASF opened 2 weeks ago

sebbASF commented 2 weeks ago

Running pagefind 1.1.0 several times in succession generates several differently named fragment files with slightly different sizes, and the hash value in pagefind-entry.json changes.

AFAICT this did not happen with 1.0.3

It seems odd that the output should change even though the input has not.

bglw commented 2 weeks ago

Ah, I'll look into this. Likely something being output from a hashmap in arbitrary order that I should change. Thanks for the pointer!