Skip to content

Commit

Permalink
ensure update_res only exists when cargo_lock_fp file does not
Browse files Browse the repository at this point in the history
  • Loading branch information
JosiahParry committed Sep 24, 2023
1 parent 071efd8 commit 4dbd2de
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions R/cran-compliance.R
Original file line number Diff line number Diff line change
Expand Up @@ -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, {
Expand Down

0 comments on commit 4dbd2de

Please sign in to comment.