Skip to content

Commit 85be771

Browse files
authored
Merge pull request #1851 from rstudio/uv-resolve-fix
Fix internal `uv_binary()` resolution
2 parents e5e9fd0 + 24cd0fd commit 85be771

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

R/py_require.R

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -678,7 +678,9 @@ uv_binary <- function(bootstrap_install = TRUE) {
678678
}
679679
}
680680

681-
if (file.exists(uv)) uv else NULL # print visible
681+
# if we bootstrap-installed successfully, return the path to the uv binary
682+
# if not, reset `uv` for the on.exit() hook and return NULL visibly
683+
if (file.exists(uv)) uv else (uv <- NULL)
682684
}
683685

684686
uv_get_or_create_env <- function(packages = py_reqs_get("packages"),

0 commit comments

Comments
 (0)