Skip to content

Commit 295ea38

Browse files
committed
Bug: use_bioconductor = FALSE still contacts bioconductor.org
1 parent 63d646b commit 295ea38

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,4 @@
4747
/vignettes/internals.html
4848
/vignettes/internals.md
4949
/.dev
50+
bug-report-use-bioconductor.md

NEWS.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# pak (development version)
22

3+
* Setting `use_bioconductor = FALSE` (or `options(pkg.use_bioconductor = FALSE)`)
4+
now truly prevents any network contact with Bioconductor. Previously,
5+
`cmc__get_repos()` in pkgcache unconditionally called
6+
`bioconductor$get_repos()` to classify repository types — even when
7+
`bioc = FALSE` — which could trigger an HTTP request to
8+
`https://bioconductor.org/config.yaml` for R versions not in the
9+
built-in R → Bioc version map (e.g. R 4.5). This request causes a hard
10+
failure behind corporate firewalls (#TODO).
11+
312
# pak 0.9.2
413

514
* No user visible changes.

src/library/pkgcache/R/metadata-cache.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1040,7 +1040,7 @@ extract_revdeps <- function(pkgs, packages, dependencies, recursive) {
10401040
cmc__get_repos <- function(repos, bioc, cran_mirror, r_version, auth = TRUE) {
10411041
repos[["CRAN"]] <- cran_mirror
10421042
repos <- unlist(repos)
1043-
bioc_names <- bioconductor$get_repos()
1043+
bioc_names <- if (bioc) bioconductor$get_repos() else character(0L)
10441044
res <- data_frame(
10451045
name = names(repos),
10461046
url = unname(repos),

0 commit comments

Comments
 (0)