From 285e2432848f596ae7e971a57da0f3790a0214f5 Mon Sep 17 00:00:00 2001 From: ncullen93 Date: Tue, 29 Aug 2023 23:10:15 -0400 Subject: [PATCH] fix: user-supplied lockfiles are correctly copied --- R/add_dockerfiles_renv.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/add_dockerfiles_renv.R b/R/add_dockerfiles_renv.R index 24afc09f..3253d968 100644 --- a/R/add_dockerfiles_renv.R +++ b/R/add_dockerfiles_renv.R @@ -80,7 +80,7 @@ add_dockerfile_with_renv_ <- function( my_dock <- dockerfiler_Dockerfile()$new(FROM = tolower(tolower(paste0(golem::get_golem_name(), "_base")))) - my_dock$COPY("renv.lock.prod", "renv.lock") + my_dock$COPY(lockfile, "renv.lock") my_dock$RUN("R -e 'renv::restore()'")