The deps are sorted, but the name is the same so the order depends on the metadata hash.
Fix by sorting by the actual name, too.
Gbp-Pq: Name 1002_fix_doc_tests_order_hash.patch
}
}
}
+ // Help with tests to get a stable order with renamed deps.
+ doctest_deps.sort();
self.compilation.to_doc_test.push(compilation::Doctest {
package: unit.pkg.clone(),
target: unit.target.clone(),
[DOCTEST] foo
[RUNNING] `rustdoc --test [CWD]/src/lib.rs \
[..] \
- --extern baz=[CWD]/target/debug/deps/libbar-[..].rlib \
--extern bar=[CWD]/target/debug/deps/libbar-[..].rlib \
+ --extern baz=[CWD]/target/debug/deps/libbar-[..].rlib \
[..]`
",
).run();