From 26904439b5907b973201019a5d1083eee1261272 Mon Sep 17 00:00:00 2001 From: Saikari Date: Sun, 1 Feb 2026 08:39:02 +0300 Subject: refactor: enhance temporary file naming for stdin script handling --- xmake/plugins/lua/main.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xmake/plugins/lua/main.lua') diff --git a/xmake/plugins/lua/main.lua b/xmake/plugins/lua/main.lua index f3e6f400d..26cc8a360 100644 --- a/xmake/plugins/lua/main.lua +++ b/xmake/plugins/lua/main.lua @@ -63,7 +63,7 @@ function main() if script == "-" or from_stdin then local script_content = io.stdin:read("*a") if script_content then - scriptfile_stdin = os.tmpfile("xmake_lua_stdin") .. ".lua" + scriptfile_stdin = os.tmpfile("xmake_lua_stdin_" .. hash.uuid4()) .. ".lua" io.writefile(scriptfile_stdin, script_content) if from_stdin and script and script ~= "-" then arguments = arguments or {} -- cgit v1.3.1