diff options
| author | ruki <[email protected]> | 2022-06-25 00:35:18 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-06-25 00:35:18 +0800 |
| commit | 98baab9ef829470209fb31d87d04a45c7e302f26 (patch) | |
| tree | 38fe6406fe2e9591c7b9877b62f4a6f6a59c3a60 | |
| parent | cd469f457ed3b13ce216be1b8689ecd8db16d346 (diff) | |
improve filesync
| -rw-r--r-- | xmake/modules/private/service/remote_build/filesync.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/xmake/modules/private/service/remote_build/filesync.lua b/xmake/modules/private/service/remote_build/filesync.lua index 4b5c5f250..b828477b4 100644 --- a/xmake/modules/private/service/remote_build/filesync.lua +++ b/xmake/modules/private/service/remote_build/filesync.lua @@ -92,6 +92,11 @@ function filesync:snapshot() 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 + -- https://github.com/xmake-io/xmake/issues/2488 + if is_host("windows") then + fileitem = fileitem:gsub("\\", "/") + end local manifest_info = manifest_old[fileitem] local mtime = os.mtime(filepath) if not manifest_info or not manifest_info.mtime or mtime > manifest_info.mtime then |
