-
Notifications
You must be signed in to change notification settings - Fork 710
Make --install-method=copy the default (instead of =symlink) #7221
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
Comments
P.S.: Found on https://stackoverflow.com/questions/7167424/replace-all-symlinks-with-original a hack to replace symlinks with their target by abuse of
(Does not preserve time stamps, though.) |
Even with You may want #3333 instead |
Ok, but if I keep the while (lightweight) It is the most sensible default I am after, so that things work out-of-the-box in standard cases for users like me that do not want to configure if they are not forced to. |
|
Well, something is odd then in v2-cabal. So, with the current v2-cabal, what is the best practice to manage the |
Can this issue get a triage please? |
There is:
Can't speak for everyone, but I just nuke a part of it every so often (and for me that often happens to match up with ghc releases and when I drop old ones). With a biggish drive it isn't much of an issue. I can see how it could become one when new-installing different versions of Agda (which is heavyweight) at a fast rate (one more reason to use Really, I think the only safe way to free space without problematic edge cases here is #3333 (or maybe some way to safely relocate a package with all its runtime dependencies). Back to the issue in the title, given the consequences of deleting the store, a symlink seems to me strictly better than a copy, would you agree? |
According to #6506, the default
--install-method
on Windows iscopy
instead ofsymlink
.I think this is the more sensible default in general.
From
v1-install
I am used to get binaries in.cabal/bin
that persist even if I clean up in.cabal
the artifacts of old GHC versions. With the defaults ofv2-install
, cleaning up old GHCs breaks my binaries, as they are only symlinks.E.g., I have in
.cabal/bin
which is dead since I purged the
ghc-8.8.3
directory instore
.The new behavior is surprising to me and can be very annoying (e.g. in scenarios where I have an executable build by a old ghc version which I removed, but the compilation fails on the later ghc versions---it can take hours to recover a lost executable).
Proposal: Make
--install-method=copy
the default (instead of=symlink
).The text was updated successfully, but these errors were encountered: