-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cross-platform symlink #143
Comments
Uhh, you make a symlink and it's there on both Unix and NT. It kinda Just Works IME. Do you have a reproducer? I have this in one of my desktop's
|
https://github.com/daxpedda/http-symlink-repro |
Well, yeah, when you clone it it's just a regular file because Windows doesn't have normal symlinks (=> git doesn't (can't) clone them as such):
If you make it an actual link then it functions as such:
I can't say I understand the question at hand. |
So creating Windows shortcuts through the context menu doesn't work, because it uses symbolic links. The command you used uses directory junctions, first time I heard about this concept. But this is less then ideal because git doesn't actually recognize junctions as a symlink and just pushes a copy of the whole folder. I supposed the question is, can https support symbolic links? That way they can be uploaded to GitHub right next to a Linux symlink, which would allow for cross-platform symlinks. |
Huh? Right-drag -> make shortcut just makes a regular file.
I was as surprised as anyone to find out that So AFAICT all links under NT, so long as they're links, are recognised by the rust stdlib, and work? |
I was using the I checked again, and I can't make symbolic links work. It shows up correctly in the file explorer though and git also recognizes it correctly. I will try a different machine tomorrow. |
I genuinely don't understand what you're talking about. A shortcut you make from the context menu is... a shortcut. A regular file. You can put an icon on it (this edits it). You can add arguments and change the working directory (this edits it). You can edit it directly. Unless you're running some sort of cutting-edge Windows distribution maybe (and if so – which)? |
I'm saying that I tested it on Windows 10. As soon as I'm on a Windows machine again I will update you and upload a test repo for you to see what I mean. |
Basically this is not the case for me. I don't know why. I guess whatever the conclusion here, it's not a problem in https then. |
Cannot reproduce this.
The transcript corresponds to descending down Filesystem image: symlinktest.zip (yes, it's ZSTD in a ZIP, GitHub doesn't let you upload ".zst"s for whatever reason). |
Can you confirm if the issue your facing is once you clone a got repo with a link, or purely when creating links witihin Windows? |
Git repository checkouts of links are regular files on windows:
|
I couldn't figure out how cross-platform symlinks work. It states under features:
I simply used
ls -s
, but the creates symlink only worked on Linux and MacOS. Using the usual shortcut creation on Windows, didn't work at all, not on Windows and, as expected, not on Linux or MacOS.Is there something I'm missing? I couldn't find documentation on it in any case.
The text was updated successfully, but these errors were encountered: