Skip to content

Commit

Permalink
fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
t-bltg committed Jan 26, 2023
1 parent 878d42a commit 13234f5
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/backends.jl
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,13 @@ function _check_installed(backend::Union{Module,AbstractString,Symbol}; warn = t
return
end
# check installed
version = if (pkg_id = Base.identify_package(Plots, str)) === nothing
pkg_id = if str == "GR"
# FIXME: remove in `Plots2.0` (`GR` won't be a hard Plots dependency anymore).
Base.identify_package(Plots, str) # GR can be in the Manifest or in the Project
else
Base.identify_package(str) # a Project dependency
end
version = if () === nothings
nothing
else
get(Pkg.dependencies(), pkg_id.uuid, (; version = nothing)).version
Expand Down

0 comments on commit 13234f5

Please sign in to comment.