From efe3e10c4c3b00ddfa6c661e12e9dab5fba3eb61 Mon Sep 17 00:00:00 2001 From: Shaun Jackman Date: Tue, 23 Apr 2024 19:11:05 -0700 Subject: [PATCH] Fail if ocipkg::link_package fails --- intel-mkl-src/build.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/intel-mkl-src/build.rs b/intel-mkl-src/build.rs index 8bfd9ed5..26f664ef 100644 --- a/intel-mkl-src/build.rs +++ b/intel-mkl-src/build.rs @@ -67,16 +67,16 @@ fn main() -> Result<()> { // unless user set `LD_LIBRARY_PATH` explictly. if cfg.link == LinkType::Static { if cfg!(target_os = "linux") { - let _ = ocipkg::link_package(&format!( + ocipkg::link_package(&format!( "ghcr.io/rust-math/rust-mkl/linux/{}:2020.1-3038006115", MKL_CONFIG - )); + ))?; } if cfg!(target_os = "windows") { - let _ = ocipkg::link_package(&format!( + ocipkg::link_package(&format!( "ghcr.io/rust-math/rust-mkl/windows/{}:2022.0-3038006115", MKL_CONFIG - )); + ))?; } }