1
當我試圖安裝伯羅https://github.com/linkedin/Burrow#build-and-install無法`去通過
go get github.com/linkedin/Burrow
我收到以下錯誤HTTP代理GET`資源庫:
package gopkg.in/gcfg.v1: unrecognized import path "gopkg.in/gcfg.v1"
(https fetch: Get https://gopkg.in/gcfg.v1?go-get=1: proxyconnect tcp: dial tcp :0: getsockopt: connection refused)
我已經通過設置代理:
export http_proxy=myproxy:port
export https_proxy=myproxy:port
編輯:
go get -u gopkg.in/gcfg.v1
也給出了同樣的錯誤:
package gopkg.in/gcfg.v1: unrecognized import path "gopkg.in/gcfg.v1"
(https fetch: Get https://gopkg.in/gcfg.v1?go-get=1: proxyconnect tcp: dial tcp :0: getsockopt: connection refused)
EDIT1:
go get -v gopkg.in/gcfg.v1
Fetching https://gopkg.in/gcfg.v1?go-get=1
https fetch failed: Get https://gopkg.in/gcfg.v1?go-get=1: proxyconnect tcp: dial tcp :0: getsockopt: connection refused
package gopkg.in/gcfg.v1: unrecognized import path "gopkg.in/gcfg.v1" (https fetch: Get https://gopkg.in/gcfg.v1?go-get=1: proxyconnect tcp: dial tcp :0: getsockopt: connection refused)
來自錯誤消息的':0'位看起來很奇怪。任何機會讓我們看到你的* real * HTTP代理規範(主機名被替換爲'example.com'或IP地址的數字被隨機值所取代)? – kostix
我的代理是'export http_proxy = http.proxy.example.com:8080'。我可以做一個'wget https:// gopkg.in/gcfg.v1'並獲得一個html。 – Zeeshan
你可以嘗試運行'go get -v gopkg.in/gcfg.v1'(注意'-v'標誌)並更新你的問題嗎? – kostix