Skip to content

Commit 57a8e56

Browse files
committed
fix: update path normalization for Windows in post_install.lua
1 parent 6d4042a commit 57a8e56

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/e2e_test.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,8 @@ jobs:
113113
echo "===============PATH==============="
114114
echo $env:PATH
115115
echo "===============PATH==============="
116-
$result = lua -v
116+
Invoke-Expression "$(vfox activate pwsh)"
117+
$result = lua.exe -v
117118
if ($result -match "Lua 5.4.7") {
118119
Write-Output "[email protected] installed successfully!"
119120
} else {

hooks/post_install.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ function PLUGIN:PostInstall(ctx)
2828
-- use ENV OTP_COMPILE_ARGS to control compile behavior
2929
local sdkInfo = ctx.sdkInfo['lua']
3030
local path = sdkInfo.path
31-
local normalizedPath = string.gsub(path, "\\", "\\\\")
31+
local normalizedPath = string.gsub(path, "\\", "/")
3232
local lua_version = sdkInfo.version
3333
print(string.format("os type: %s, lua installed path: %s", RUNTIME.osType, path))
3434

0 commit comments

Comments
 (0)