daedalOS icon indicating copy to clipboard operation
daedalOS copied to clipboard

Git cloning into a mapped directory fails

Open DustinBrett opened this issue 2 years ago • 8 comments

Seems like write and possibly large reads from mapped drives are having issues. If I open a mapped drive in terminal and run git, the folder is made but files are not written.

DustinBrett avatar Mar 01 '22 05:03 DustinBrett

May be an issue with API support in BrowserFS, I encountered the same issue while attempting to clone a repository using isogit.

hello-smile6 avatar Mar 12 '22 04:03 hello-smile6

Been digging more into this and starting to think it has something to do with symlinks. It does seem to be partly related to the way isogit wants to use fs which may not be supported with the File System Access API currently.

DustinBrett avatar Apr 19 '22 05:04 DustinBrett

Been digging more into this and starting to think it has something to do with symlinks. It does seem to be partly related to the way isogit wants to use fs which may not be supported with the File System Access API currently.

Can you implement symlinks by creating a .symlinks file and reading from it, then creating a Nodejs script to create actual symlinks or update the file?

hello-smile6 avatar Apr 19 '22 23:04 hello-smile6

I don't think it's possible to make real symlinks via the File System Access API but that is how IsoGit works on most GitHub repos it seems.

DustinBrett avatar Apr 20 '22 00:04 DustinBrett

I don't think it's possible to make real symlinks via the File System Access API but that is how IsoGit works on most GitHub repos it seems.

Why not fake it, by creating a file with the locations of would-be symlinks and creating placeholder files where symlinks would be?

hello-smile6 avatar Apr 20 '22 00:04 hello-smile6

Feel free to give it a go. I think it will be easier said than done that approach. And I also prefer not to fake those kinds of things.

DustinBrett avatar Apr 20 '22 02:04 DustinBrett

Feel free to give it a go. I think it will be easier said than done that approach. And I also prefer not to fake those kinds of things.

I have no idea how to.

hello-smile6 avatar Apr 20 '22 02:04 hello-smile6

Maybe discourse.wicg.io is necessary. Unfortunately, some environments will never support symlinks, so faking it may be the only option.

hello-smile6 avatar Apr 20 '22 02:04 hello-smile6

I tested this recently and it worked, although it did oddly make my computer slow which was a worry, but it was able to write so progress has been made and I am going to close this for now.

DustinBrett avatar Dec 19 '23 05:12 DustinBrett