Skip to content

Commit ceaf0a6

Browse files
jshasyphar
authored andcommitted
Use --offline when building docs
This reflects the intent of the command, since containers are isolated from the network. And it provides a clearer error message in case there is some problem and cargo would try to make a network request.
1 parent ca1f1dd commit ceaf0a6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/docbuilder/rustwide_builder.rs

+1
Original file line numberDiff line numberDiff line change
@@ -673,6 +673,7 @@ impl RustwideBuilder {
673673

674674
// Add docs.rs specific arguments
675675
let mut cargo_args = vec![
676+
"--offline".into(),
676677
// We know that `metadata` unconditionally passes `-Z rustdoc-map`.
677678
// Don't copy paste this, since that fact is not stable and may change in the future.
678679
"-Zunstable-options".into(),

0 commit comments

Comments
 (0)