Skip to content
Snippets Groups Projects

Warn if InPartS legacy is also loaded

Merged Philip Bittihn requested to merge legacywarning into dev
1 file
+ 6
0
Compare changes
  • Side-by-side
  • Inline
+ 6
0
@@ -189,6 +189,12 @@ function __init__()
@info "InPartS: JLD2 export enabled"
end
# Use Requires infrastructure to warn if legacy version is ever loaded simultaneously
legacyInPartS = Base.PkgId(Base.UUID("385f2a1c-27df-41b8-9918-2c5d735168af"), "InPartS")
Requires.listenpkg(legacyInPartS) do
@warn "The legacy version of InPartS was loaded alongside the current, public version. This will cause unexpected behavior."
end
return
end
Loading