I've been struggling to use Requires.jl to have a conditional dependency. I want MathTeXEngine to be "required" as needed by Luxor.jl rather than added as a dependency.
On Julia 1.7, running Luxor.jl tests shows this warning but the tests continue and pass:
┌ Warning: Package Luxor does not have MathTeXEngine in its dependencies:
│ - If you have Luxor checked out for development and have
│ added MathTeXEngine as a dependency but haven't updated your primary
│ environment's manifest file, try `Pkg.resolve()`.
│ - Otherwise you may need to report an issue with Luxor
└ Loading MathTeXEngine into Luxor from project dependency, future warnings for Luxor are suppressed.
But on Julia 1.8 (Version 1.8.0-beta1 (2022-02-23)), running the same tests, that last line ("Loading ...") doesn't appear, and the rest of the tests fail:
┌ Warning: Error requiring `LaTeXStrings` from `Luxor`
│ exception =
│ LoadError: ArgumentError: Package Luxor does not have MathTeXEngine in its dependencies:
│ - You may have a partially installed environment. Try `Pkg.instantiate()`
│ to ensure all packages in the environment are installed.
│ - Or, if you have Luxor checked out for development and have
│ added MathTeXEngine as a dependency but haven't updated your primary
│ environment's manifest file, try `Pkg.resolve()`.
│ - Otherwise you may need to report an issue with Luxor
│ Stacktrace:
How can I make the 1.8 behaviour the same as the 1.7?
I've been struggling to use Requires.jl to have a conditional dependency. I want MathTeXEngine to be "required" as needed by Luxor.jl rather than added as a dependency.
On Julia 1.7, running Luxor.jl tests shows this warning but the tests continue and pass:
But on Julia 1.8 (Version 1.8.0-beta1 (2022-02-23)), running the same tests, that last line ("Loading ...") doesn't appear, and the rest of the tests fail:
How can I make the 1.8 behaviour the same as the 1.7?