From eb90591a3962ae0d03115577b3b60bf9f376e606 Mon Sep 17 00:00:00 2001 From: ruki Date: Wed, 10 Jan 2024 00:54:18 +0800 Subject: improve require lock #4591 --- xmake/modules/private/action/require/impl/lock_packages.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xmake/modules/private/action/require/impl/lock_packages.lua b/xmake/modules/private/action/require/impl/lock_packages.lua index 6a962ba77..bbda552b7 100644 --- a/xmake/modules/private/action/require/impl/lock_packages.lua +++ b/xmake/modules/private/action/require/impl/lock_packages.lua @@ -66,7 +66,7 @@ function main(packages) local packagelock_key = _get_packagelock_key(instance) results[key][packagelock_key] = _lock_package(instance) end - io.writefile(project.requireslock(), string.serialize(results, {orderkeys = true})) + io.writefile(project.requireslock(), string.serialize(results, {orderkeys = true}), {encoding = "binary"}) end end -- cgit v1.3.1