fix(build): harden rustls dependency path for Linux builds (#275)

This commit is contained in:
Chummy 2026-02-17 00:39:28 +08:00 committed by GitHub
parent 3234159c6c
commit b36f23784a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 16 additions and 8 deletions

View file

@ -67,8 +67,8 @@ ls -lh target/release/zeroclaw
```bash
git clone https://github.com/zeroclaw-labs/zeroclaw.git
cd zeroclaw
cargo build --release
cargo install --path . --force
cargo build --release --locked
cargo install --path . --force --locked
# Quick setup (no prompts)
zeroclaw onboard --api-key sk-... --provider openrouter
@ -474,6 +474,18 @@ A git hook runs `cargo fmt --check`, `cargo clippy -- -D warnings`, and `cargo t
git config core.hooksPath .githooks
```
### Build troubleshooting (Linux OpenSSL errors)
If you see an `openssl-sys` build error, sync dependencies and rebuild with the repository lockfile:
```bash
git pull
cargo build --release --locked
cargo install --path . --force --locked
```
ZeroClaw is configured to use `rustls` for HTTP/TLS dependencies; `--locked` keeps the transitive graph deterministic on fresh environments.
To skip the hook when you need a quick push during development:
```bash