Skip to content

Commit 70ed596

Browse files
committed
Update CLAUDE.md and download script for proxy/offline builds
Add proxy/offline build instructions to CLAUDE.md referencing the download script. Add clipp and snappy dependencies to the download script for complete host test coverage.
1 parent d9a47b6 commit 70ed596

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

CLAUDE.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,20 @@ wget http://security.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ub
3333
sudo apt install -y ./libtinfo5_6.3-2ubuntu0.1_amd64.deb
3434
```
3535

36+
## Proxy/Offline Builds
37+
38+
If bazel cannot download dependencies due to proxy authentication issues, use the download script to pre-populate the cache:
39+
40+
```
41+
bash utils/download_bazel_deps.sh
42+
```
43+
44+
Then run bazel with the cache flags:
45+
46+
```
47+
tools/bazel test --config=host //:host --repository_cache=/tmp/repo_cache --distdir=/tmp/bazel_cache
48+
```
49+
3650
## Development Commands
3751

3852
### Command line interaction with devices

utils/download_bazel_deps.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,10 @@ download_and_cache "https://github.com/fmtlib/fmt/archive/5.0.0.tar.gz" \
8181
download_and_cache "https://github.com/Naios/function2/archive/7cd95374b0f1c941892bfc40f0ebb6564d33fdb9.zip" \
8282
"f2127da1c83d1c3dea8a416355a7cbb4e81fe55cf27ac9ef712d0554a3b745b6"
8383

84+
download_and_cache "https://github.com/muellan/clipp/archive/2c32b2f1f7cc530b1ec1f62c92f698643bb368db.zip"
85+
86+
download_and_cache "https://github.com/google/snappy/archive/1.1.7.tar.gz"
87+
8488
# System dependencies (Ubuntu 24.04 needs libtinfo5 from older package)
8589
if ! ldconfig -p | grep -q libtinfo.so.5; then
8690
echo "Installing libtinfo5..."

0 commit comments

Comments
 (0)