summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2026-02-19 22:54:35 +0800
committerruki <[email protected]>2026-02-19 22:54:35 +0800
commit104ffb3bc0d4d43f36688ffa778201bed4a71e45 (patch)
tree77dc52c4263d93817940c5c3e8bd69e7b423d49d
parent8a0500d1fb9453fc5a8bebf9f859acadc1d8301f (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