You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't think it's currently possible to use all of Mojolicious when built with App::Staticperl. I don't think there's a problem with Mojolicious or App::Staticperl, but I'm wondering where it would make sense to put in some effort for them to be able to work together.
App::Staticperl creates a single-file Perl with all of your app's modules embedded in the executable (and can even statically link the entire binary). A perl script (like a mojo-lite app) is set as the staticperl bootstrap file and is named "!boot" -- so (caller)[1] returns "!boot". Cwd::realpath((caller)[1]) then returns undef and then Mojo::File::curfile croaks with an invalid path. As you know, this causes a lot of problems for Mojolicious to work properly.
What would be an appropriate means to try to address this?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I don't think it's currently possible to use all of Mojolicious when built with App::Staticperl. I don't think there's a problem with Mojolicious or App::Staticperl, but I'm wondering where it would make sense to put in some effort for them to be able to work together.
App::Staticperl creates a single-file Perl with all of your app's modules embedded in the executable (and can even statically link the entire binary). A perl script (like a mojo-lite app) is set as the staticperl bootstrap file and is named "!boot" -- so (caller)[1] returns "!boot". Cwd::realpath((caller)[1]) then returns undef and then Mojo::File::curfile croaks with an invalid path. As you know, this causes a lot of problems for Mojolicious to work properly.
What would be an appropriate means to try to address this?
Beta Was this translation helpful? Give feedback.
All reactions