Skip to content

Commit 8f304db

Browse files
committed
Fix import of ScopedValues in Julia v1.11
Previously `ScopedValues.with` was exported from `Base` but that was changed recently, so the ScopedValues check was failing. Now we check if the module is present instead.
1 parent d51b319 commit 8f304db

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Diff for: src/Dagger.jl

+4-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,10 @@ import LinearAlgebra: transpose
1212

1313
using UUIDs
1414

15-
if !isdefined(Base, :with)
16-
using ScopedValues
15+
if !isdefined(Base, :ScopedValues)
16+
import ScopedValues: ScopedValue, with
17+
else
18+
import Base.ScopedValues: ScopedValue, with
1719
end
1820

1921
using Requires

0 commit comments

Comments
 (0)