harden bootstrap version load and clean plugin on uninstall

- Use pcall for version.lua in bootstrap.lua so missing version module does not crash plugin startup
- Remove plugin/subminer from app-data dirs in uninstall-linux and uninstall-macos targets
- Add Lua compat test asserting bootstrap uses defensive pcall for version load
- Add release-workflow test asserting uninstall targets clean bundled plugin dirs
- Delete completed planning document
This commit is contained in:
2026-05-12 20:03:02 -07:00
parent 75348aa72a
commit 0f849da777
5 changed files with 23 additions and 384 deletions
+4 -1
View File
@@ -14,7 +14,10 @@ function M.init()
local utils = require("mp.utils")
local options_helper = require("options")
local version = require("version")
local ok_version, version = pcall(require, "version")
if not ok_version or type(version) ~= "table" then
version = { version = "unknown" }
end
local environment = require("environment").create({ mp = mp, utils = utils })
local opts = options_helper.load(options_lib, environment.default_socket_path())
local state = require("state").new()