Skip to content

Commit 901726c

Browse files
committed
add comment about hardcoded default target in fake-releases
1 parent 3917e4e commit 901726c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/test/fakes.rs

+4
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,10 @@ impl<'a> FakeRelease<'a> {
325325
if let Some(markdown) = self.readme {
326326
fs::write(crate_dir.join("README.md"), markdown)?;
327327
}
328+
329+
// Many tests rely on the default-target being linux, so it should not
330+
// be set to docsrs_metadata::HOST_TARGET, because then tests fail on all
331+
// non-linux platforms.
328332
let default_target = self.default_target.unwrap_or("x86_64-unknown-linux-gnu");
329333
let release_id = crate::db::add_package_into_database(
330334
&mut db.conn(),

0 commit comments

Comments
 (0)