Skip to content

Commit ff02c9f

Browse files
committed
add section to BUILDING.md for bypassing checksum validation
1 parent 86026d4 commit ff02c9f

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

BUILDING.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,14 @@ patchelf --set-rpath '$ORIGIN' /path/to/binary/or/shared/library.so
202202

203203
For debug the build process of sherpa-onnx, please set `SHERPA_BUILD_DEBUG=1` environment variable before build.
204204

205+
### Bypass checksum validation (NOT RECOMMENDED)
206+
207+
If you encounter checksum validation errors and trust the download source, you can bypass validation:
208+
209+
```console
210+
UNSAFE_DISABLE_CHECKSUM_VALIDATION=1 cargo build
211+
```
212+
205213
## Release new version
206214

207215
```console
@@ -268,4 +276,4 @@ Open Visual Studio Installer, go to Individual Components, search ARM64, select
268276
```console
269277
rustup target add aarch64-pc-windows-msvc
270278
cargo build --no-default-features --target aarch64-pc-windows-msvc --release
271-
```
279+
```

0 commit comments

Comments
 (0)