-
Notifications
You must be signed in to change notification settings - Fork 44
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
curl instead of URLDownloadToCacheFileW? #40
Comments
|
I believe I'm using a proxy here, and it works for me. I tried unsetting and resetting |
ref JuliaLang/julia#3001 (comment) and JuliaPackaging/BinDeps.jl#121 - does
work? We won't be bundling git forever. |
Yes, the powershell command also works for me. Excellent. As long as we have the As an aside, the curl man page says:
so I suspect something else might have been the problem in those cases. Seems like we can avoid curl anyway though. |
Quite possible. Or it needs to be configured somehow, or the version of curl that is bundled in Windows git might be old or deficient.
|
A lot of people have reported download troubles with WinRPM though, so definitely worth trying out some other options to see if we can make it more robust. |
We should move all the functionality to Base (again, unless people don't want the |
Pretty sure everyone thinks |
usually i would point out that it's a really messy to bootstrap this particular package, which is why it has such peculiar implementations in places. but now that we're shipping busybox anyways (http://intgat.tigress.co.uk/rmy/busybox/index.html), we can actually use wget and other standard unix tools |
We have curl from git at the moment, and similarly I don't think wget from busybox would work in strangely configured environments. But it's an okay fallback. |
https://github.com/rmyorston/busybox-w32/blob/master/networking/wget.c has some support for the http_proxy environment variable |
Another confusing instance of WinRPM download troubles: JuliaIO/LightXML.jl#23 |
The Powershell trick also works for me on a lab machine where |
For me as well -- using powershell circumvents IE's Enhanced Security Configuration on Windows Server. I can prepare a PR (against Base?) if there's consensus on using that instead of the current implementation on Windows? |
This package probably needs a pretty big refactoring of the way it does downloading to work well on windows server, use requests instead of httpclient on unix if anyone is using this there, etc. Currently it's passing a status code around in a few places but it's hard to tell whether that's really absolutely necessary. |
Any progress on getting a more full-featured |
almost positive there's an issue, but no progress that I know of |
I may have been thinking of JuliaPackaging/BinDeps.jl#135. There is now a pure julia (except for the TLS library) http parser, but I don't feel comfortable having anything depend on it until it's established and stable |
Today I'm in an environment where IE is blocked on windows machines, and as a result this call to download files in WinRPM fails. I saw that
curl
is included with the git that julia ships on windows, so I tried replacing the download function (https://github.com/JuliaLang/WinRPM.jl/blob/d788882b4a71cd77e85f0d3a61aacb98028881b2/src/WinRPM.jl#L45) with simplyand everything worked perfectly. Can we incorporate this change somehow? Maybe as an alternative to try if URLDownloadToCacheFileW fails? I can write up a PR.
The text was updated successfully, but these errors were encountered: