Closed mestinso closed 1 year ago
It would depend on how much complexity it adds to the code base. If I recall, straight leaves some edge cases unaccounted for when simulating links.
I don't use Windows very often, and when I do I enable symlinks, so this is a low priority feature for now.
Got it, understood. I would note that I'm in a corporate windows environment and I don't have admin privileges in order to enable symlinks. I expect many other corporate windows users to be in a similar situation (and it's usually not by choice!). My emacs lisp skills are lacking, otherwise, I might take a crack at it. Maybe for a future day...
@mestinso:
I've implemented a WIP feature branch which allows for avoiding symlinks on Windows. It implements a global minor-mode which, when enabled, copies files directly to their build directories. It also adds a hook to find-file-hook which will visit the corresponding source file in the package's repo when a build file is visited (similar to how a symlink would behave). I'm not sure I'll turn it on for users by default depending on their OS, but it can be easily configured. See the following test case:
elpaca | f3df95f HEAD -> feat/no-symlink, origin/feat/no-symlink |
isntaller | 0.5 |
emacs | GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.38, cairo version 1.17.8) of 2023-07-25 |
git | git version 2.41.0 |
You can start a temporary test session using this branch and your config by evaluating the following in your scratch buffer:
(elpaca-test :ref "feat/no-symlink" :early-init user :init user :interactive t)
Testing is appreciated.
I've been testing the "feat/no-symlink" / elpaca-no-symlink-mode in Microsoft Windows in a corporate setting, meaning that I've got limitations, and is working alright.
I've been testing the "feat/no-symlink" / elpaca-no-symlink-mode in Microsoft Windows in a corporate setting, meaning that I've got limitations, and is working alright.
Noted. Thank you for testing!
I've merged elpaca-no-symlink-mode into master. As always, testing is appreciated. Thanks.
Feature Description
Straight has the
straight-use-symlinks
setting that is set tonil
on windows by default. Is there any plan to add an equivalent feature for elpaca to use copying instead? Note that I'd like to switch to elpaca from straight but this is preventing me due to how my windows environment is configured.Confirmation