summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2026-02-19 22:54:35 +0800
committerSaikari <[email protected]>2026-02-20 16:31:35 +0300
commit0b89554d1bad82154ed65278ca0207de5294d958 (patch)
tree542441bb1ea8b829478a8eb8e00f324db7013c72
parent9f1c3a8e8115a0746a2f7de435fa660a9504978e (diff)
update comments
-rw-r--r--.github/workflows/haiku.yml4
-rw-r--r--xmake/core/base/os.lua6
2 files changed, 8 insertions, 2 deletions
diff --git a/.github/workflows/haiku.yml b/.github/workflows/haiku.yml
index c872b678e..34e51392b 100644
--- a/.github/workflows/haiku.yml
+++ b/.github/workflows/haiku.yml
@@ -48,8 +48,8 @@ jobs:
RUN_PROBABILITY: ${{ vars.HAIKU_RUN_PROBABILITY || '0.2' }}
build:
- #needs: check
- #if: needs.check.outputs.should-run == 'true'
+ needs: check
+ if: needs.check.outputs.should-run == 'true'
runs-on: ubuntu-latest
concurrency:
diff --git a/xmake/core/base/os.lua b/xmake/core/base/os.lua
index b8ce09f68..1766d28f5 100644
--- a/xmake/core/base/os.lua
+++ b/xmake/core/base/os.lua
@@ -202,6 +202,12 @@ end
-- if tmpdir_root is a symbolic link, os.tmpdir() may return a path that differs
-- from the path style returned by os.curdir() (e.g. on Haiku).
+--
+-- Using a consistent root path can avoid errors in relative path resolution.
+--
+-- e.g.
+-- tmpdir: /tmp/.xmake0/260217/ -> /boot/system/cache/tmp/.xmake0/260217
+-- curdir: /boot/system/cache/tmp/.xmake0/260217
function os._resolve_tmpdir(tmpdir_root)
if os.islink(tmpdir_root) then
tmpdir_root = os.readlink(tmpdir_root) or tmpdir_root