From 057937a066ceef9bb33b89fd7f40d5345a3fb95e Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Sat, 5 Mar 2022 03:30:33 -0700 Subject: [PATCH] glfw: clone with -c core.longpaths=true for Windows Yes, even in 2022 we're still dealing with Windows filepaths being too long. The repository can't clone on GitHub actions Windows CI runner, currently, because of this issue. https://stackoverflow.com/a/22575737 Signed-off-by: Stephen Gutekanst --- glfw/system_sdk.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glfw/system_sdk.zig b/glfw/system_sdk.zig index 02c96061..76e8575d 100644 --- a/glfw/system_sdk.zig +++ b/glfw/system_sdk.zig @@ -197,7 +197,7 @@ fn determineSdkRoot(allocator: std.mem.Allocator, org: []const u8, name: []const var repo_url_fbs = std.io.fixedBufferStream(&buf); try std.fmt.format(repo_url_fbs.writer(), "https://github.com/{s}/{s}", .{ org, name }); - try exec(allocator, &[_][]const u8{ "git", "clone", repo_url_fbs.getWritten() }, sdk_path_dir); + try exec(allocator, &[_][]const u8{ "git", "clone", "-c", "core.longpaths=true", repo_url_fbs.getWritten() }, sdk_path_dir); return sdk_root_dir; }, else => err,