-
Notifications
You must be signed in to change notification settings - Fork 44
Adding non-cached links to sources.list #117
Conversation
Cached links are failing on some Windows virtual machines, especially the ones that are located on Amazon and Azure, removing the caching resolves this issue on those servers. So, this PR provides non-cached links as alternative whenever cached links fail.
What does a log look like when both links work? |
Here is a log when both links work |
and packages install correctly? |
Yes, WinRPM installs correctly and I tried a few examples from WinRPM readme, here is a log of that. https://gist.github.com/bmharsha/c79def27220871a7e85243103daf83ae#file-winrpm_usage-md |
All those multiple candidate warnings are a problem, so this isn't great as is. Will need to find a way to avoid all those. |
One thing we could try is leave sources.list alone, but if the download gets to its retry limit then try again with the cache prefix removed as part of the download code. |
I am pretty sure the download function is fundamentally bugged. @bmharsha Is your system 32-bit ? |
On my fork I think I have at least fixed the download issue I get with On 0.7 I get a strange stack overflow error with a circular reference https://ci.appveyor.com/project/musm/winrpm-jl/build/job/nuoo2f5do90wm8dh |
No, it's a 64 bit system.
Sure, I'll try this and report back, thanks. |
Thanks. Another option is just to get rid of the |
@musm I tried your fork on "Windows Server 2012 R2 datacenter" (64 bit), I'm still seeing download errors, here is a full log https://gist.github.com/bmharsha/c79def27220871a7e85243103daf83ae#file-musm_winrpm-md |
@bmharsha Sorry about that. Do you mind trying again? I made some updates on master. |
I tried again, download errors are now gone, we just have following warning
Here is the full log |
Ok so it looks like that works fine? Not sure why the links are cached anyways, as I too have run in into this problem in the past. It looks like the WinRPM |
Yes, it works. Thank you @musm , are you planning to send a PR from your fork, shall I close this PR? |
That suggests we should use powershell for |
#118 same issue again... |
I think we should move quick to fix this (the appveyor builds in HDF5 are super flaky too) |
OTOH it would be a lot quicker to add the change here first (1 PR vs 3 PRs) |
WinRPM is encountering download errors because cached links are failing on some Windows servers, removing the caching resolves this issue on those servers. So, this PR provides non-cached links as alternative whenever cached links fail.