From 2e444758fdc5664755955b7efbfa87f0a444c9d4 Mon Sep 17 00:00:00 2001 From: Erica Marigold Date: Sun, 24 Nov 2024 17:59:42 +0000 Subject: [PATCH] refactor: add note about exit code propagation --- bins/stylua/init.luau | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/bins/stylua/init.luau b/bins/stylua/init.luau index 29c47e3..9e11303 100644 --- a/bins/stylua/init.luau +++ b/bins/stylua/init.luau @@ -1,2 +1,7 @@ -local process = require("@lune/process") -process.exit(require("./lune_packages/core")("JohnnyMorganz/stylua", _G.PESDE_ROOT)) +-- TODO: Make use of returned exit code. Currently this script will get +-- required by a pesde generated linker script, and due to a lune bug, +-- exiting from within a required module causes a non-winding panic + +-- See https://github.com/lune-org/lune/pull/247 for more details + +require("./lune_packages/core")("JohnnyMorganz/stylua", _G.PESDE_ROOT)