-
Notifications
You must be signed in to change notification settings - Fork 846
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
stack fails unpacking ghc on Windows under non-ASCII path because 7zip version is too old #3987
Comments
We should make stack use a newer version of 7zip to fix this issue. |
This issue was found as part of the effort to make stack work great under non-ASCII user names: #3988 |
I also tried with
Version is:
|
I can confirm that upgrading I've saved https://github.com/fpco/stackage-content/blob/edc62c118a7319e6dcd1b39ccf1723e0b5f062d3/stack/stack-setup-2.yaml as sevenzexe-info:
url: "http://nh2.me/7z/7z.exe"
content-length: 455168
sha1: 596297deacf9a1815cefd46d1ac52aa5672ed2bd
sevenzdll-info:
url: "http://nh2.me/7z/7z.dll"
content-length: 1656832
sha1: ef6a002f0defd1a3320d6f04a0c87bcb63d5672c Then I ran:
The output of the new 7z version seems to be more verbose, we might want to pass a flag if we don't like that. But that's not so important to me. The error at the end is a separate issue. |
Can you open up a PR to include the newer version? |
Also moves location of Stack-supplied 7-Zip files to be consistent with that of MSYS2 files. 7z.exe and 7z.dll originally obtained from https://www.7-zip.org/download.html. Addresses Stack issue [#3987](commercialhaskell/stack#3987). Tested before committing with a local setup-info dictionary.
@nh2, I have updated the Stack-supplied 7-Zip to 7-Zip 22.01. You will have to delete the existing |
When on Windows my user name is set to
日
and I want tostack runghc
a file, the7z
invocation issued by stack fails with the message:Confirming it's a 7zip problem by directly invoking it:
@bitemyapp got the great idea to check how old that 7zip version obtained by stack is.
It is version
9.20
, which as per https://www.7-zip.org/download.html is from2010-11-18
. Indeed using the newer version18.01
fixes it:Stack version
Method of installation
The text was updated successfully, but these errors were encountered: