Skip to content

Commit 42401ed

Browse files
BUG FIX: Future backend factory was created via the calling environment rather than via the namespace environment where it lives
1 parent e773267 commit 42401ed

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Package: future
2-
Version: 1.58.0-9020
2+
Version: 1.58.0-9021
33
Title: Unified Parallel and Distributed Processing in R for Everyone
44
Depends:
55
R (>= 3.2.0)

NEWS.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@
4242
the future may be `reset()`.
4343

4444
* Calls to `resolved()` were not registered by FutureJournal.
45+
46+
* Future backend factory was created via the calling environment
47+
rather than via the namespace environment where it lives.
4548

4649

4750
# Version 1.58.0 [2025-06-05]

R/backend_api-01-FutureBackend-class.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ makeFutureBackend <- function(evaluator, ..., debug = FALSE) {
278278
mdebugf("Backend factory arguments: [n=%d]", length(args2))
279279
mstr(args2)
280280
}
281-
backend <- do.call(factory, args = args)
281+
backend <- do.call(factory, args = args, envir = environment(factory))
282282
if (debug) mdebugf("Backend: <%s>", commaq(class(backend)))
283283
stop_if_not(inherits(backend, "FutureBackend"))
284284

0 commit comments

Comments
 (0)