Error cloning OpenNaaS git repository in Windows. error: unable to create file … (No such file or directory).

There is a path length limitation in mingw32, which is 260 characters:

mingw32 is used to emulate the git CLI on windows.

Currently, none of OpenNaaS files have paths longer that 260 characters, current maximum is 216. However, depending on the directory you are cloning the git repo to, some files will end up with a path longer than 260.
Let’s say you have 40 characters for the directory path. If you can keep the cloning directory shorter than that it should work. However, this is only a temporary solution.

In links above, it is suggested so use msys library or install cygwin to overcome this limitation.

Posted in: Developers