Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merging #5482 introduced breakage I didn't account for: being able to run `install_runner_prerequisites.sh` without having Cargo available, which is used by the a4x2 testbed. This change introduces the `XTASK_BIN` environment variable which will be used instead of `cargo xtask` if set. The companion PR in a4x2 is https://github.com/oxidecomputer/testbed/pull/49/files. Tested that all these work: - `./tools/install_builder_prerequisites.sh -y` - `XTASK_BIN=target/debug/xtask ./tools/install_builder_prerequisites.sh -y` (after building xtask) - `XTASK_BIN=target/debug/nonexistent-file ./tools/install_builder_prerequisites.sh -y` (correctly fails with ENOENT)
- Loading branch information