On Windows, the default maximum path length is set to 260 characters. https://docs.microsoft.com/en-us/windows/desktop/fileio/naming-a-file#maximum-path-length-limitation
In my repository, this is being exceeded as the build path “C:\Users\travis\build\OrganizationName\respositoryName” in my case takes up 63 characters, then then it becomes reasonable to cross the limit. And this is before running CMake. For local development, we usually use “C:/work/repositoryName” or something similar to the prefix doesn’t take up a quarter of the max length.
I see 2 possibilities going forward:
- Allow using a custom directory. However, being realistic, I don’t think this is going to be entertained.
- The more realistic solution is that Microsoft has removed this limitation as of build 1607 (which is almost 2 years before 1803). The catch is that this is not default and requires opt-in.
To quote the link above:
Starting in Windows 10, version 1607, MAX_PATH limitations have been removed from common Win32 file and directory functions. However, you must opt-in to the new behavior.
While it does say Windows 10, I’m assuming Windows Server is probably going to have this option available as well.
Can the windows images come with this enabled?