Skip to content

Commit 333e8da

Browse files
committed
doc: Hide cargo-fetch description in offline man page
1 parent 95e113c commit 333e8da

File tree

5 files changed

+6
-8
lines changed

5 files changed

+6
-8
lines changed

src/doc/man/cargo-fetch.md

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
{{~*set command="fetch"}}
33
{{~*set actionverb="Fetch"}}
44
{{~*set target-default-to-all-arch=true}}
5+
{{~*set no-fetch-in-offline=true}}
56
{{~*set multitarget=true}}
67

78
## NAME

src/doc/man/generated_txt/cargo-fetch.txt

+1-2
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,7 @@ OPTIONS
9191
Beware that this may result in different dependency resolution than
9292
online mode. Cargo will restrict itself to crates that are
9393
downloaded locally, even if there might be a newer version as
94-
indicated in the local copy of the index. See the cargo-fetch(1)
95-
command to download dependencies before going offline.
94+
indicated in the local copy of the index.
9695

9796
May also be specified with the net.offline config value
9897
<https://doc.rust-lang.org/cargo/reference/config.html>.

src/doc/man/includes/options-locked.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,10 @@ proceed without the network if possible.
1818
Beware that this may result in different dependency resolution than online
1919
mode. Cargo will restrict itself to crates that are downloaded locally, even
2020
if there might be a newer version as indicated in the local copy of the index.
21+
{{#if (ne no-fetch-in-offline true)}}
2122
See the {{man "cargo-fetch" 1}} command to download dependencies before going
2223
offline.
24+
{{/if}}
2325

2426
May also be specified with the `net.offline` [config value](../reference/config.html).
25-
{{/option}}
27+
{{/option}}

src/doc/src/commands/cargo-fetch.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,7 @@ the network is not available. With this flag, Cargo will attempt to
9797
proceed without the network if possible.</p>
9898
<p>Beware that this may result in different dependency resolution than online
9999
mode. Cargo will restrict itself to crates that are downloaded locally, even
100-
if there might be a newer version as indicated in the local copy of the index.
101-
See the <a href="cargo-fetch.html">cargo-fetch(1)</a> command to download dependencies before going
102-
offline.</p>
100+
if there might be a newer version as indicated in the local copy of the index.</p>
103101
<p>May also be specified with the <code>net.offline</code> <a href="../reference/config.html">config value</a>.</dd>
104102

105103
</dl>

src/etc/man/cargo-fetch.1

-2
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,6 @@ proceed without the network if possible.
106106
Beware that this may result in different dependency resolution than online
107107
mode. Cargo will restrict itself to crates that are downloaded locally, even
108108
if there might be a newer version as indicated in the local copy of the index.
109-
See the \fBcargo\-fetch\fR(1) command to download dependencies before going
110-
offline.
111109
.sp
112110
May also be specified with the \fBnet.offline\fR \fIconfig value\fR <https://doc.rust\-lang.org/cargo/reference/config.html>\&.
113111
.RE

0 commit comments

Comments
 (0)