From e526bb133cdc127f69dd6a09f3d16ba28d1e0320 Mon Sep 17 00:00:00 2001 From: Fons van der Plas Date: Sun, 9 Jul 2023 10:26:34 +0200 Subject: [PATCH] Fix env keyword julia compatibility for distributed stdlib worker --- Project.toml | 2 +- src/DistributedStdlibWorker.jl | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Project.toml b/Project.toml index 2b59786..990b29f 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "Malt" uuid = "36869731-bdee-424d-aa32-cab38c994e3b" authors = ["Sergio Alejandro Vargas "] -version = "0.8.0" +version = "0.8.1" [deps] Distributed = "8ba89e20-285c-5b6f-9357-94700520ee1b" diff --git a/src/DistributedStdlibWorker.jl b/src/DistributedStdlibWorker.jl index 54640b2..e5f4b0c 100644 --- a/src/DistributedStdlibWorker.jl +++ b/src/DistributedStdlibWorker.jl @@ -16,8 +16,8 @@ mutable struct DistributedStdlibWorker <: AbstractWorker function DistributedStdlibWorker(; env=String[], exeflags=[]) # Spawn process - expr = if VERSION < v"1.8.0-aaa" - isempty(env) || @warn "Malt.DistributedStdlibWorker: the `env` kwarg requires Julia 1.8" + expr = if VERSION < v"1.9.0-aaa" + isempty(env) || @warn "Malt.DistributedStdlibWorker: the `env` kwarg requires Julia 1.9" :($(Distributed_expr).addprocs(1; exeflags=$(exeflags)) |> first) else :($(Distributed_expr).addprocs(1; exeflags=$(exeflags), env=$(env)) |> first)