Closed nihlete closed 5 years ago
You should try running curl
manually and find the options which work in your case. https://curl.haxx.se/docs/manpage.html
Then we can see what can be done. Note that the manual doesn't specify login/password in proxy urls.
Also, from the message it seems that it was cabal
who failed. So try running cabal v1-update
as well.
Thanks for the answer, I'll try that at Monday.
This type of call works fine without enviroment variables.
C:\Users\WS-0001\AppData\Local\Programs\stack\x86_64-windows\msys2-20180531\usr\bin\curl.exe -x proxyserver.com:port -U username:password https://github.com/haskell/haskell-ide-engine
With enviroment variables this call works fine
C:\Users\WS-0001\AppData\Local\Programs\stack\x86_64-windows\msys2-20180531\usr\bin\curl.exe https://github.com/haskell/haskell-ide-engine
In curl docs I found mention of config file.
I create .curlrc
in C:\Users\WS-0001\AppData\Local\Programs\stack\x86_64-windows\msys2-20180531\home\user
with content
-x proxyserver.com:port
-U username:password
and this type of workaround worked.
Seems like curl called in new instance of cmd, without proper env variables. Anyway, I'm Ok with my workaround, this issue may be closed.
Where should this workaround be documented?
In README. "Installation behind a proxy" I think
I have an authentication proxy in my university. Win7 x64 machine. In cmd I set up an enviroment variables:
Calling
E:\hie>stack ./install.hs hie-8.6.5 --verbose
results withSeems like Shake build system relies on curl call which is not take into account env variables.
I'm not sure that this problem caused by build config, maybe this is a problem of Shake by itself.