I’m trying to build a sysimage and relocate it to another machine (actually another Docker image) without re-installing all the packages I precompiled (the precompiled packages take precidence anyway when using the sysimage). I successfully built the image (sys_app.so) and copied the artifacts manually (let me know if there’s a more elegant way to do this). However, I can’t actually use one of the precompiled package.
using MyPackage
MyPackage.dosomething(2)
:ERROR ArgumentError: Package MyPackage not found in current path... maybe you meant `import/using .MyPackage
It suggested using a .
so following this advice, I used
using .MyPackage
MyPackage.dosomething(2)
which strangely worked. Why do I need to use a .
when “using” a precompiled package in the system image? Is there any way not to use this so that I don’t have to change the top-level script? This dot doesn’t seem to be required for packages in the base sysimage, is there any way to give my sysimage packages this behaviour?