释放宝石时,耙子释放会挂起 [英] rake release hangs when releasing a gem
问题描述
我试图将我的第一个宝石发布到Ruby Gems。
I'm trying to release my first gem to Ruby Gems. The gem is working great locally.
我正在发布它:
I'm releasing it using:
$rake release
这在控制台中给了我:
example_gem 0.0.3 built to pkg/example_gem-0.0.1.gem
Tagged v0.0.1
Pushed git commits and tags
然后过程挂起。我等了20分钟,然后取消了。
Then the process hangs. I waited 20 mins, then cancelled.
当我试图再次发布时,我得到了:
When I tried to release again I got:
rake aborted!
This tag has already been committed to the repo.
所以我认为宝石已经成功提交,但是16小时之后,宝石不在我的在Ruby Gems帐户。
So I assumed the gem had been successfully submitted, however 16 hours later, the gem is not under my account on Ruby Gems.
所以我碰到了这个版本,并且使用 - trace
重试,但是这个过程挂起在同一个地方,只输出以下内容:
So I bumped the version and tried again using --trace
, but the process hangs in the same place with only the following additions to output:
** Invoke release (first_time)
** Execute release
example_gem 0.0.3 built to pkg/example_gem-0.0.3.gem
Tagged v0.0.3
Pushed git commits and tags
出了什么问题?
What is going wrong?
推荐答案
谷歌搜索和档案:我遇到了同样的问题,但出于不同的原因。当我使用推荐的命令下载我的RubyGems证书文件时:
For the sake of Google searches and archives: I encountered the same issue but for a different reason. When I used the recommended command to download my RubyGems credentials file:
curl -u pond https://rubygems.org/api/v1/api_key.yaml > ~/.gem/credentials; chmod 0600 ~/.gem/credentials
...我必须误输我的密码,因为该文件实际上包含文本 HTTP基本:访问被拒绝。
。没有错误输出到控制台。重复执行 curl
命令并更加小心地输入密码导致了一个合理的 credentials
文件,并且下一次尝试运行 rake release
工作过。
...I must have mis-typed my password, as the file actually contained the text "HTTP Basic: Access denied.
". No error had been output to the console. Repeating the curl
command and being more careful with password entry resulted in a sensible credentials
file and the next attempt to run rake release
worked.
如果您收到有关现有代码的投诉,则可能只需要在本地删除它;使用:
If you get complaints about an existing tag you probably just need to delete it locally; use:
git tag
...看看那里有什么,一旦你确定了基于版本的标签(例如v2.0.0),将其删除:
...to see what's there and once you've identified the version based tag (e.g. "v2.0.0") delete it with:
git tag -d <tag_name>
这篇关于释放宝石时,耙子释放会挂起的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!