-
Notifications
You must be signed in to change notification settings - Fork 233
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
markup5ever non-deterministic generated.rs #573
Comments
This will be a bit more tricky than advertised. What seems to be the source of non-determinism is the html5ever/markup5ever/build.rs Line 36 in 0e4e125
The problem I see is, I don't know where the non-determinism is coming from. It could be as simple as changing html5ever/markup5ever/build.rs Lines 82 to 88 in 0e4e125
or as hard as getting phf or string_cache_codegen to emit stable perfect hash map.
|
Rust HashMaps have random iteration order. osa1/tiny#438 solved that with an indexmap. Though it would be nice, if rust had some builtin way for that. |
Yeah, there's a strong chance that it's that
There is |
The big thing is how do we repro this non-determinism? Without a test, it's going to be hard to not have a regression somewhere along the line. |
In openSUSE, I build our packages with
but it will probably be easier for you with some |
So when can we expect a new version with servo/string-cache#290 integrated? With |
I don't know the process, I can ask around Zulip for deets. |
Originally filed in lycheeverse/lychee#1632 - check out the details there.
Please ensure that markup5ever's
generated.rs
is created in a deterministic way, to allow for reproducible builds.The text was updated successfully, but these errors were encountered: