将 commercialhaskell/stack 与代理一起使用
Using commercialhaskell/stack with a proxy
我正在尝试在公司代理后面使用 stack。发出 stack new
命令 returns:
InvalidProxyEnvironmentVariable "http_proxy" "http://username:password@host:port/"
我在 .bashrc
中定义了 http_proxy
、https_proxy
和 ftp_proxy
,以及全部大写的等价物(例如 HTTP_PROXY
)。删除或更改这些内容会破坏其他地方的内容。
stack repo 似乎还没有记录代理行为,这是可以理解的,因为它是最近才发布的。有谁知道目前是否可以在代理后面使用堆栈?如果是,怎么做?
这是 http-client 的一个限制,它现在有 been reported and resolved. This change will get released to Hackage in the next few days, and then hopefully the next official build of stack will include the change. If you're adventurous, you can build the http-proxy-auth branch,其中包含此修复预发布。
我正在尝试在公司代理后面使用 stack。发出 stack new
命令 returns:
InvalidProxyEnvironmentVariable "http_proxy" "http://username:password@host:port/"
我在 .bashrc
中定义了 http_proxy
、https_proxy
和 ftp_proxy
,以及全部大写的等价物(例如 HTTP_PROXY
)。删除或更改这些内容会破坏其他地方的内容。
stack repo 似乎还没有记录代理行为,这是可以理解的,因为它是最近才发布的。有谁知道目前是否可以在代理后面使用堆栈?如果是,怎么做?
这是 http-client 的一个限制,它现在有 been reported and resolved. This change will get released to Hackage in the next few days, and then hopefully the next official build of stack will include the change. If you're adventurous, you can build the http-proxy-auth branch,其中包含此修复预发布。