Skip to content
This repository has been archived by the owner on Apr 5, 2024. It is now read-only.

output is nondeterministic #297

Open
dario23 opened this issue May 15, 2022 · 0 comments
Open

output is nondeterministic #297

dario23 opened this issue May 15, 2022 · 0 comments

Comments

@dario23
Copy link
Contributor

dario23 commented May 15, 2022

during #295 i noticed that there are crates for which rust-semverver output is not deterministic.

  • i'm not sure how similar projects handle this, or if there's something that e.g. compiletest-rs do to make the output more deterministic
  • i guess there might be things we could do on our side to make the output more deterministic, like iterate in sorted order over things etc.
  • there are cases where the number of errors differs, not just the order. i'm not sure if this indicates a general problem with using compile errors/warnings for breaking/non-breaking changes; i.e. i'd assume that how many errors are shown once an initial error has been hit (and it's clear the "compile" won't be successful) is more of a best-effort thing to reduce the number of iterations, and the effort of making things deterministic goes more towards the compiled code than the error messages.

cases i've collected so far

these are all from https://crates.io/crates/async-trait/reverse_dependencies, and i guess the common denominator is that they're big enough™

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants