oxidecomputer / oxidecomputer/omicron
`tools/ci_download_dendrite_stub` does not work on macOS
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 572
- Forks
- 97
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 96
Description
Per @david-crespo, this script does not run on macOS.
As a workaround, one can lie to the script about the OS version it's running on and compile the necessary packages to build and run omicron:
cat ../omicron-install-dendrite.sh
#! /usr/bin/env bash
OSTYPE=linux-gnu tools/ci_download_dendrite_stub
BIN_DIR="$(pwd)/out/dendrite-stub/root/opt/oxide/dendrite/bin"
cd ~/oxide/dendrite
cargo build -p dpd --features tofino_stub --release
cargo build -p swadm --release
cp target/release/dpd "$BIN_DIR/dpd"
cp target/release/swadm "$BIN_DIR/swadm"
echo "now add the dir to your path"
echo ""
echo " export PATH=\"$BIN_DIR:\$PATH\""
The reason the script fails is that dendrite does not build binaries for mac: oxidecomputer/dendrite#223.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading and running tools/ci_download_dendrite_stub on macOS, then compare its behavior with the OSTYPE=linux-gnu workaround and the listed dendrite Rust builds. Done means the script works on macOS without the workaround and prepares the dendrite binaries needed by omicron.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- bash, macos, rust
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100