I’m writing a package extension, say ABExt.jl, where A and B are package names. B depends on C, fc is a method defined by C and not imported by B. I’d like to import fc to ABExt. I have two attempts so far:
import B: fc throws WARNING: could not import B.fc into ABExt
import C: fc throws ArgumentError: Package ABExt does not have C in its dependencies
In my package DifferentiationInterface.jl, the Zygote extension also depends explicitly on ForwardDiff, even though ForwardDiff is a dependency of Zygote too:
This allows me to do import ForwardDiff in the extension instead of import Zygote.ForwardDiff