LoadPackageAsset and LoadPackageAssetAsync already exist, make it PluginSecurity instead of RobloxScriptSecurity
Use Case
I have a Package Installer Plugin and it had to use a work around to make it work properly with the PackageLink, and it is too difficult to manage for my workflow
I use VS Code and Rojo however rojo build doesn’t support creating PackageLink so I can’t use it with AssetService:CreateAssetVersionAsync and Open Cloud Luau tasks and would always have to do this manually which defeats the point of these automations
How would it solve my problem
If we can use LoadPackageAssetAsync I’d have an easier time managing my Package and Plugin
It would enable automatic publishing workflow which is the main point of Open Cloud API
I am trying to make a plugin which sets up a template framework for my game with all the modules I always use. These modules are packages. Currently, using :LoadAsset inserts these modules without the package link, meaning I cannot easily extend the functionality of these modules such that future projects can see these changes
I would like a method to load in packages via plugin so I do not have to manually find, insert and update packages from the toolbox/asset manager manually if I wish to change the master copy of a module I inserted via plugin.
Its always confused me why the PackageLink isn’t preserved by LoadAsset given that a PackageLink is a serializable object (save a package as an RBXMX and there he is).
As stated in the bug post, I think plugin interactions with packages would be better with a whole dedicated service rather than bandaiding a fix like this, since theres other package tasks that would make sense for a plugin to utilise.