Skip to content

Commit

Permalink
Forward env vars that look like keyring:env secrets
Browse files Browse the repository at this point in the history
to the subprocess.
  • Loading branch information
gaborcsardi committed Feb 24, 2025
1 parent 29b24f8 commit a92791a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions R/subprocess.R
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ remote <- function(func, args = list()) {
pkg_options <- opts[grepl("^pkg[.]", names(opts)) | names(opts) %in% extraopts]
envs <- Sys.getenv()
extraenvs <- c("R_BIOC_VERSION", "PATH")
if (any(grepl("@", subst_args[["__repos__"]]))) {
extraenvs <- c(extraenvs, envs[grep("^https?://", names(envs))])
}
pkg_envs <- envs[grepl("^PKG_", names(envs)) | names(envs) %in% extraenvs]
rs$run(function(new_opts, new_envs) {
opts <- options()
Expand Down

0 comments on commit a92791a

Please sign in to comment.