Stream: helpdesk (published)

Topic: dependency on submodule of a package


view this post on Zulip Leandro Martínez (Aug 19 2022 at 17:06):

I have a package that contains a submodule. I can use that submodule directly, like:

using MyPackage.Submodule

Now, I want to use that submodule in another package, and thus this other package has MyPackage as a dependency. Until there, all fine.

However, this other package starts with:

module MyOtherPackage
    using MyPackage.Submodule
    ...
end

but I'm getting the Package MyOtherPackage does not have Submodule as a dependency error.

Is there a standard way to deal with this kind of issue? Having a submodule that essentially can be loaded independently is such an extraneous thing?


Last updated: Oct 02 2023 at 04:34 UTC