diff --git a/R/cran-compliance.R b/R/cran-compliance.R index 93ccd45b..b8de8f11 100644 --- a/R/cran-compliance.R +++ b/R/cran-compliance.R @@ -148,14 +148,15 @@ vendor_pkgs <- function(path = ".", quiet = FALSE, overwrite = NULL) { } ) }) + if (update_res[["status"]] != 0) { + cli::cli_abort( + "{.file Cargo.lock} could not be created using {.code cargo generate-lockfile}", + class = "rextendr_error" + ) + } } - if (update_res[["status"]] != 0) { - cli::cli_abort( - "{.file Cargo.lock} could not be created using {.code cargo generate-lockfile}", - class = "rextendr_error" - ) - } + # vendor crates withr::with_dir(src_dir, {