diff options
| author | Saikari <[email protected]> | 2026-07-10 22:28:38 +0300 |
|---|---|---|
| committer | ruki <[email protected]> | 2026-07-30 10:17:31 +0800 |
| commit | 4b6a2eb23d0903124871f837798db2dd718e86a1 (patch) | |
| tree | c0dda814d7b199e1c54db61803c4051f4a834a3b /xmake/modules/private/action/require/impl/remove_packages.lua | |
| parent | a928217681c4c5dc60b80a230182e5254bc30c8d (diff) | |
feat: add support for plugin packages in xmake
Diffstat (limited to 'xmake/modules/private/action/require/impl/remove_packages.lua')
| -rw-r--r-- | xmake/modules/private/action/require/impl/remove_packages.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/xmake/modules/private/action/require/impl/remove_packages.lua b/xmake/modules/private/action/require/impl/remove_packages.lua index a10fc803d..dfe50c3a4 100644 --- a/xmake/modules/private/action/require/impl/remove_packages.lua +++ b/xmake/modules/private/action/require/impl/remove_packages.lua @@ -23,6 +23,7 @@ import("core.base.option") import("core.base.hashset") import("core.package.package") import("core.cache.localcache") +import("private.action.require.impl.utils.plugins") -- get package configs string function _get_package_configs_str(manifest_file) @@ -94,7 +95,12 @@ function _remove_packagedirs(packagedir, opt) local description = string.format("remove ${color.dump.string}%s-%s${clear}/${yellow}%s${clear}\n -> ${dim}%s${clear} (${red}%s${clear})", package_name, version, hash, configs_str, status and status or "used") local confirm = utils.confirm({default = true, description = description}) if confirm then + local manifest = os.isfile(manifest_file) and io.load(manifest_file) os.rm(hashdir) + -- unregister the plugin package from the global plugins directory + if manifest and manifest.kind == "plugin" then + plugins.unregister(manifest.name or package_name) + end end end end |
