-
-
Notifications
You must be signed in to change notification settings - Fork 88
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
Output is not deterministic #63
Comments
Thank you for reporting this.
Do you mean: the output is not deterministic? If so, you are absolutely right. I did not know that. It's probably due to the use of hash maps. I agree that this would be worth fixing. That's probably even a bug, because the order of entries in
|
Err, yes, I crossed a wire there. Non-deterministic results make idempotent use of The use of HashMaps makes sense -- an ordered collection would probably easily fix this (but then, the real question becomes what the 'correct' order is). |
👍
Yes. (Maybe it's also the YAML deserialization.)
I think we shouldn't care too much about this question and rather implement a conflict-detection, if that is needed. If there are two patterns like If there are really two |
Not really, Vivid should probably sort the suffixes from shortest to longest so that the most specific one will match. |
Oh, it already does: Lines 193 to 194 in 700c9a6
|
The output of
vivid generate
is not deterministic -- subsequent runs differ. Scenarios where the output of Vivid is cached (or used in an idempotent script) could be improved by making the output deterministic.The text was updated successfully, but these errors were encountered: