Stichting-MINIX-Research-Foundation / minix

Official MINIX sources - Automatically replicated from gerrit.minix3.org
Other
3.06k stars 994 forks source link

Can't clone repository in Windows #250

Open mcandre opened 6 years ago

mcandre commented 6 years ago

I want to clone this repository to my developer machine in order to search the codbase. However, when I try to grab the source, git errors:

$ git clone https://github.com/Stichting-MINIX-Research-Foundation/minix.git
Cloning into 'minix'...
remote: Counting objects: 184544, done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 184544 (delta 0), reused 0 (delta 0), pack-reused 184541
Receiving objects: 100% (184544/184544), 180.11 MiB | 3.79 MiB/s, done.
Resolving deltas: 100% (92134/92134), done.
error: unable to create file external/bsd/libc++/dist/libcxx/test/std/thread/thread.mutex/thread.mutex.requirements/thread.sharedtimedmutex.requirements/thread.sharedtimedmutex.class/try_lock_until_deadlock_bug.pass.cpp: Filename too long

fatal: cannot create directory at 'external/mit/xorg/lib/xcb-util/aux': Invalid argument
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry the checkout with 'git checkout -f HEAD'

System:

boricj commented 6 years ago

This is (in part) a duplicate of #16. In short, these files are part of the shared source tree from NetBSD and we don't want to introduce unnecessary changes for maintenance burden reasons whenever we want to synchronize with upstream. You might be able to check out the first file if you move your repository to a shorter filesystem path. Note that you can clone, but you can't checkout a couple of files.

If all you want is to search the codebase, having these two items missing shouldn't be a big issue. If you want to cross-compile, I assume that as long as you don't build with X11 (because of external/mit/xorg/lib/xcb-util/aux) then the build system should at the very least not complain about missing files. Whether one can successfully cross-compile from Windows is another story.

sambuc commented 6 years ago

I just tried to do this, using windows 10: windows10version

And the Ubuntu 16.04 distribution from the Microsoft Store: ms store ubuntu

I got this: checkout

Is there any specific reason not to use this, as the above seems to be what Microsoft is pushing forward for Linux compatibility.

boricj commented 6 years ago

While that'll work for checking out the repository and cross-compiling MINIX3, I assume Windows programs still can't touch these filenames. IDEs and text editors running on Windows will run into issues. Well, at least vi inside WSL will work...