We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e31fbad commit b7859faCopy full SHA for b7859fa
src/services/Serialization.jl
@@ -9,8 +9,12 @@ const TYPEKEY = "_type"
9
#NOTE fixed really bad function but kept similar as fallback #TODO upgrade to use pkgversion(m::Module)
10
function _getDFGVersion()
11
12
+ if VERSION >= v"1.9"
13
+ return pkgversion(DistributedFactorGraphs)
14
+ end
15
+ #TODO when we drop jl<1.9 remove the rest here
16
pkgorigin = get(Base.pkgorigins, Base.PkgId(DistributedFactorGraphs), nothing)
- if !isnothing(pkgorigin)
17
+ if !isnothing(pkgorigin) && !isnothing(pkgorigin.version)
18
return pkgorigin.version
19
end
20
dep = get(Pkg.dependencies(), Base.UUID("b5cc3c7e-6572-11e9-2517-99fb8daf2f04"), nothing)
0 commit comments