去找到没有找到回购的节俭包失败

时间:2018-04-05 18:02:25

标签: go thrift

遵循节俭golang home page的指示: 试图运行go get thrift包: 去获取git.apache.org/thrift.git/lib/go/thrift / ... 得到以下错误:

```

   # cd .; git clone https://git.apache.org/thrift.git godep/src/git.apache.org/thrift.git
Cloning into 
   'godep/src/git.apache.org/thrift.git'...
   fatal: repository 'https://git.apache.org/thrift.git/' not found
   package git.apache.org/thrift.git/lib/go/thrift/...: exit status 128

```

2 个答案:

答案 0 :(得分:1)

投票使用Github回购作为主要回购,主要是为了便于维护和贡献。在此过程中,旧的回购已被删除(故意)。不幸的是,一些依赖项被忽略了,比如你提到的那些依赖项,加上良好的沟通并不是真的在我们这边。

所有脏的详细信息都在THRIFT-4542

我们的PMC主席几小时前也发出了some more words on that issue

TL; DR:我们正在解决这个问题。很抱歉给您带来不便。

" 狗屎发生了!" (阿甘正传)

答案 1 :(得分:0)

看起来Apache将节俭转移到GitHub(但没有更新他们的文档)。在这里看他们的网站: https://git.apache.org/thrift.git那件事也会在你的浏览器上返回404。相反,现在他们在这里托管https://github.com/apache/thrift

但是,如果您只是尝试:

go get github.com/apache/thrift

Go会抱怨那里没有.go个文件。

而是尝试:

go get github.com/apache/thrift/lib/go/thrift

那将拉动和编译(尝试在go1.10.1,windows / amd64),但我没有尝试编写一个thrift程序来验证一切正常。您可能还需要相应地更新导入以使用github包。