diff options
| author | ruki <[email protected]> | 2026-07-10 23:33:35 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-07-10 23:33:35 +0800 |
| commit | 369e46bd1e5bcb88b380965962cf6da0089aec80 (patch) | |
| tree | a3b7fbab2c62ffecd1ba4b3d2ff639970e7acf8b /xmake/modules | |
| parent | 3a0b131873815ff3c2d4d133885f1e691823e945 (diff) | |
| parent | 9d654aa671f8aae9df7f1480221aaebe491e4d65 (diff) | |
Merge pull request #7644 from xmake-io/path
Fix path translate
Diffstat (limited to 'xmake/modules')
| -rw-r--r-- | xmake/modules/private/service/remote_build/filesync.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/xmake/modules/private/service/remote_build/filesync.lua b/xmake/modules/private/service/remote_build/filesync.lua index fa9ba1fde..d2c2d6703 100644 --- a/xmake/modules/private/service/remote_build/filesync.lua +++ b/xmake/modules/private/service/remote_build/filesync.lua @@ -89,7 +89,10 @@ function filesync:snapshot() ignorefiles = "|" .. table.concat(ignorefiles, "|") end local count = 0 - for _, filepath in ipairs(os.files(path.join(rootdir, "**" .. ignorefiles))) do + -- we should not translate the whole pattern with ignorefiles in path.join, + -- because the joined pattern string may be very long (> TB_PATH_MAXN) + -- https://github.com/xmake-io/xmake/issues/6962 + for _, filepath in ipairs(os.files(path.join(rootdir, "**") .. ignorefiles)) do local fileitem = path.relative(filepath, rootdir) if fileitem then -- we should always use '/' in path key for supporting linux & windows |
