Unregistered sub-packages in a registered main-package

Hi,
I would like to create a package (which will be registered at some point), which contains multiple unregistered sub-packages. I’m aware that I can add unregistered sub-packages to my main package via dev in the package manager and that works fine. My two questions are:

  • Is it possible (and also good practice) to register such a package containing unregistered sub-packages?
  • If the answer to the first question is yes, how would a concrete implementation look like? Or to be more precise, how would I encode the dependency on those local sub-packages in the Project.toml file of the main package?

No, registered packages in General must not depend on unregistered packages, see GitHub - JuliaRegistries/General: The official registry of general Julia packages.

Thanks for the link!

If you’re going to register the package, but not the individual components; the components should be submodules, not subpackages. I have a package like that here, if you need an example:

1 Like