From 279cb8cf89f8df9f7511006efefbb1d4d29bd90b Mon Sep 17 00:00:00 2001 From: iliana etaoin Date: Tue, 21 May 2024 15:28:47 -0700 Subject: [PATCH] ci: fix omicron-common job for PRs from forks (#5806) --- .github/buildomat/jobs/omicron-common.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/buildomat/jobs/omicron-common.sh b/.github/buildomat/jobs/omicron-common.sh index 2d5f51f432..b238eec7c6 100755 --- a/.github/buildomat/jobs/omicron-common.sh +++ b/.github/buildomat/jobs/omicron-common.sh @@ -5,7 +5,6 @@ #: target = "helios-2.0" #: rust_toolchain = "1.77.2" #: output_rules = [] -#: skip_clone = true # Verify that omicron-common builds successfully when used as a dependency # in an external project. It must not leak anything that requires an external @@ -18,10 +17,9 @@ set -o xtrace cargo --version rustc --version +cd /tmp cargo new --lib test-project cd test-project -cargo add omicron-common \ - --git https://github.com/oxidecomputer/omicron.git \ - --rev "$GITHUB_SHA" +cargo add omicron-common --path /work/oxidecomputer/omicron/common cargo check cargo build --release