From e85331c437eb5b9fce382e6a9a310e44a641a3d6 Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Sat, 4 Mar 2023 15:20:03 +0900 Subject: [PATCH] Fix Dragonfly BSD CI Dragonfly BSD 6.4.0 VM doesn't seem to have git. ``` error: failed to get `cfg-if` as a dependency of package `polling v2.5.2 (/Users/runner/work/polling/polling)` Caused by: failed to load source for dependency `cfg-if` Caused by: Unable to update registry `crates-io` Caused by: failed to fetch `https://github.com/rust-lang/crates.io-index` Caused by: could not execute process `git fetch --force --update-head-ok 'https://github.com/rust-lang/crates.io-index' '+HEAD:refs/remotes/origin/HEAD'` (never executed) Caused by: No such file or directory (os error 2) ``` --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7c49fbd..945bb75 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -145,7 +145,7 @@ jobs: usesh: true # Dragonfly BSD is tier 3 target, so install rust from package manager instead of rustup prepare: | - pkg install -y rust + pkg install -y git rust run: | cargo test