pub fn setup_lua_environment(
lua: &Lua,
platform: &str,
version_override: Option<&str>,
file_path: Option<&str>,
create_pkg_dir: Option<&str>,
build_dir: Option<&str>,
staging_dir: Option<&str>,
sub_package: Option<&str>,
scope: Option<Scope>,
quiet: bool,
) -> Result<(), Error>Expand description
Bootstraps the Lua environment for executing a package definition.
This function populates the global Lua scope with system information,
directory paths, and utility functions that the .pkg.lua script
expects to have available. It effectively creates the “sandbox” where
package builds and installations are defined.