doushi7819 2017-07-04 09:40
浏览 165

转到go.googlesource.com的git clone在代理后面的计算机上失败

I'm trying to clone go package (golang.org/x/text/language, stored on go.googlesource.com) on a RHEL6 server behind a corporate proxy but the go get command fails:

> go get -v golang.org/x/text/language
Fetching https://golang.org/x/text/language?go-get=1
Parsing meta tags from https://golang.org/x/text/language?go-get=1 (status code 200)
get "golang.org/x/text/language": found meta tag main.metaImport{Prefix:"golang.org/x/text", VCS:"git", RepoRoot:"https://go.googlesource.com/text"} at https://golang.org/x/text/language?go-get=1
get "golang.org/x/text/language": verifying non-authoritative meta tag
Fetching https://golang.org/x/text?go-get=1
Parsing meta tags from https://golang.org/x/text?go-get=1 (status code 200)
golang.org/x/text (download)
# cd .; git clone https://go.googlesource.com/text /local/home/me/dev/src/golang.org/x/text
Cloning into '/local/home/me/dev/src/golang.org/x/text'...
error: HTTP response code said error while accessing https://go.googlesource.com/text/info/refs
fatal: HTTP request failed
package golang.org/x/text/language: exit status 128

I'm pretty sure this is related to git not being able to clone as the following command also fails:

git clone --verbose https://go.googlesource.com/text
Cloning into 'text'...
error: HTTP response code said error while accessing https://go.googlesource.com/text/info/refs
fatal: HTTP request failed

I have set proxies both in my shell environment and for git (http and https) and they are working, as you can see here:

wget https://go.googlesource.com/text
--2017-07-04 11:17:15--  https://go.googlesource.com/text
Resolving our.proxy.host ... 10.4.xxx.xxx
Connecting to our.proxy.host|10.4.xxx.xxx|:8080... connected.
Proxy request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: “text”

    [ <=>                                                                               ] 11,014      --.-K/s   in 0.02s

2017-07-04 11:17:15 (622 KB/s) - “text” saved [11014]

go get also seems to work fine, as I'm not getting any problems executing

go get github.com/stretch/testify

Any clues as to what might be the problem are greatly appreciated.

Thanks in advance, Georg

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 三菱伺服电机按启动按钮有使能但不动作
    • ¥20 为什么我写出来的绘图程序是这样的,有没有lao哥改一下
    • ¥15 js,页面2返回页面1时定位进入的设备
    • ¥200 关于#c++#的问题,请各位专家解答!网站的邀请码
    • ¥50 导入文件到网吧的电脑并且在重启之后不会被恢复
    • ¥15 (希望可以解决问题)ma和mb文件无法正常打开,打开后是空白,但是有正常内存占用,但可以在打开Maya应用程序后打开场景ma和mb格式。
    • ¥20 ML307A在使用AT命令连接EMQX平台的MQTT时被拒绝
    • ¥20 腾讯企业邮箱邮件可以恢复么
    • ¥15 有人知道怎么将自己的迁移策略布到edgecloudsim上使用吗?
    • ¥15 错误 LNK2001 无法解析的外部符号