Creating a system image with a new package

Hi guys,

I want to create a new system image with a package inside. I am doing it by:

julia build_sysimg.jl /tmp/test core2 userimg.jl 

in which userimg.jl has only using SatelliteToolbox.

After the end of the process, I start Julia using julia -J /tmp/test but using SatelliteToolbox fails with:

ERROR: ArgumentError: Package SatelliteToolbox not found in current path:
- Run `Pkg.add("SatelliteToolbox")` to install the SatelliteToolbox package.

Stacktrace:
 [1] require(::Module, ::Symbol) at ./loading.jl:817

How can I do this?

Btw, I can access the functions using SatelliteToolbox..

I am starting to think this is a bug. The package and its dependencies are indeed included, but I cannot export the symbols with using.

https://github.com/JuliaLang/julia/issues/29270