Skip to content
This repository was archived by the owner on Jul 1, 2024. It is now read-only.

Commit 3c5d88c

Browse files
committed
1 parent 682c743 commit 3c5d88c

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

docs/en/guide/manual-build.md

+3
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,9 @@ bin/spc download --for-libs=liblz4,libevent --without-suggestions
148148

149149
# When downloading sources, ignore some source caches (always force download, e.g. switching PHP version)
150150
bin/spc download --for-extensions=curl,pcntl,xml --ignore-cache-sources=php-src --with-php=8.3
151+
152+
# Set retry times (default is 0)
153+
bin/spc download --all --retry=2
151154
```
152155

153156
If the network in your area is not good, or the speed of downloading the dependency package is too slow,

docs/zh/guide/manual-build.md

+3
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,9 @@ bin/spc download --clean
131131

132132
# 仅下载指定的资源(使用资源名)
133133
bin/spc download php-src,micro,zstd,ext-zstd
134+
135+
# 设置重试次数
136+
bin/spc download --all --retry=2
134137
```
135138

136139
如果你所在地区的网络不好,或者下载依赖包速度过于缓慢,可以从 GitHub Action 下载每周定时打包的 `download.zip`,并使用命令直接使用 zip 压缩包作为依赖。

0 commit comments

Comments
 (0)