-
Notifications
You must be signed in to change notification settings - Fork 700
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
Windows self-upgrade, does it work? #6706
Comments
I tested the following: > git clone https://github.com/haskell/cabal.git
> cd cabal\cabal-install
> cabal install exe:cabal So far, this works as expected: Now, the issue comes here: > cd %APPDATA$\cabal\bin
> .\cabal.exe install cabal-install --overwrite-policy=always --install-method=copy Here, I'm running the recently built
So it seems like The current workaround would be to copy Note: Nevertheless I think that the code should be deleted since any solution would require some kind of custom hack. I can think of three ways of dealing with this issue (upgrading
Currently, I'm lacking free time but eventually, I would like to look into the third option. System:
|
@emlautarom1 thanks for trying it out. This is what I was afraid of. I think we can and should make a special case on Windows. There are two cases, when WIth symlinks I hope that it just works, as the new With copy, As far as I understand Windows allows to get the location of running program.
As I'm looking more closely, it looks like |
As far as I know, symlinking does not work on Windows, so that should be discarded (At least, I never got it to work). I haven't looked into v1-commands, so I don't know how that handles the upgrading issue. Could you briefly explain how this trick would work reliably on Windows? I mean:
I'm a Windows-only user so having a reliable way of managing Edit: Correction, according to #6519 symlinking should be supported on Windows. Yet, it does not work on my machine (I have developer mode enabled). I'm sharing the output of running: > pwd
C:\Users\Ryzen\Desktop
> .\cabal install -v3 cabal-install --install-method=symlink > log.txt I'm running |
@emlautarom1 that feature is not in 3.2 |
If I have
cabal v2-install cabal
in the past (with--install-method=copy
) doescabal v2-install cabal
works?There is
Distribution.Client.Win32SelfUpgrade
, but it doesn't seem to be used inv2-install
implementation. If things works without, that code could be deleted.The text was updated successfully, but these errors were encountered: