RubyGemsに公開していたライブラリを更新しようとして、rake releaseを実行した。
しかしフォワードプロキシの設定をしていなかったことに気づいて途中で停止した。
satoshi@studio3104:~/Documents/fluent-plugin-mysqlslowquerylog$ rake release fluent-plugin-mysqlslowquerylog 0.0.2 built to pkg/fluent-plugin-mysqlslowquerylog-0.0.2.gem Tagged v0.0.2 Pushed git commits and tags ^Crake aborted! Tasks: TOP => release (See full trace by running task with --trace) satoshi@studio3104:~/Documents/fluent-plugin-mysqlslowquerylog$
http_proxyにフォワードプロキシの情報をセットして再度実行したらエラー、、、
satoshi@studio3104:~/Documents/fluent-plugin-mysqlslowquerylog$ rake release rake aborted! This tag has already been committed to the repo. Tasks: TOP => release (See full trace by running task with --trace) satoshi@studio3104:~/Documents/fluent-plugin-mysqlslowquerylog$
こういう場合はtagを消してあげればよい。
satoshi@studio3104:~/Documents/fluent-plugin-mysqlslowquerylog$ git tag v0.0.1 v0.0.2 satoshi@studio3104:~/Documents/fluent-plugin-mysqlslowquerylog$ git tag -d v0.0.2 Deleted tag 'v0.0.2' (was ba2e7e7) satoshi@studio3104:~/Documents/fluent-plugin-mysqlslowquerylog$ rake release fluent-plugin-mysqlslowquerylog 0.0.2 built to pkg/fluent-plugin-mysqlslowquerylog-0.0.2.gem Tagged v0.0.2 Pushed git commits and tags Pushed fluent-plugin-mysqlslowquerylog 0.0.2 to rubygems.org satoshi@studio3104:~/Documents/fluent-plugin-mysqlslowquerylog$