From 4665f5caabb3e2744f295f9d0fa72620a4904ab2 Mon Sep 17 00:00:00 2001 From: Simon Christ Date: Fri, 11 Mar 2022 20:51:43 +0100 Subject: [PATCH] fix compat check --- src/Plots.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Plots.jl b/src/Plots.jl index 3d499645..971813a3 100644 --- a/src/Plots.jl +++ b/src/Plots.jl @@ -20,7 +20,7 @@ function _check_compat(sim::Module) be_v = Pkg.Types.read_project(joinpath(Base.pkgdir(sim), "Project.toml")).version be_c = _plots_compats[sim_str] if be_c isa String # julia 1.6 - if be_v in Pkg.Types.semver_spec(be_c) + if !(be_v in Pkg.Types.semver_spec(be_c)) @warn "$sim $be_v is not compatible with this version of Plots. The declared compatibility is $(be_c)." end else