Skip to content

Commit

Permalink
Fix env keyword julia compatibility for distributed stdlib worker
Browse files Browse the repository at this point in the history
  • Loading branch information
fonsp committed Jul 9, 2023
1 parent 1764bf4 commit e526bb1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "Malt"
uuid = "36869731-bdee-424d-aa32-cab38c994e3b"
authors = ["Sergio Alejandro Vargas <[email protected]>"]
version = "0.8.0"
version = "0.8.1"

[deps]
Distributed = "8ba89e20-285c-5b6f-9357-94700520ee1b"
Expand Down
4 changes: 2 additions & 2 deletions src/DistributedStdlibWorker.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

2 comments on commit e526bb1

@fonsp
Copy link
Member Author

@fonsp fonsp commented on e526bb1 Jul 9, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator register()

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/87115

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.8.1 -m "<description of version>" e526bb133cdc127f69dd6a09f3d16ba28d1e0320
git push origin v0.8.1

Please sign in to comment.