Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot published gem using "rake release" #48

Closed
roback opened this issue Apr 29, 2019 · 4 comments
Closed

Cannot published gem using "rake release" #48

roback opened this issue Apr 29, 2019 · 4 comments

Comments

@roback
Copy link
Member

roback commented Apr 29, 2019

Since we started using 2FA for RubyGems we can't publish gems using bundle exec rake release. Rake gets stuck on the release:rubygem_push task, as shown when running with --trace:

$ bundle exec rake release --trace
** Invoke release (first_time)
** Invoke build (first_time)
** Execute build
capistrano-twingly 4.0.0 built to pkg/capistrano-twingly-4.0.0.gem.
** Invoke release:guard_clean (first_time)
** Execute release:guard_clean
** Invoke release:source_control_push (first_time)
** Execute release:source_control_push
Tag v4.0.0 has already been created.
** Invoke release:rubygem_push (first_time)
** Execute release:rubygem_push

Running gem push manually shows exactly what's happening:

$ gem push pkg/capistrano-twingly-4.0.0.gem
Pushing gem to https://rubygems.org...
You have enabled multi-factor authentication. Please enter OTP code.
Code:

After entering the 2FA/OTP code, the gem gets published successfully.

@roback roback added the bug label Apr 29, 2019
@dentarg
Copy link
Contributor

dentarg commented May 6, 2019

Here's the upstream issue for this: rubygems/bundler#6854

@dentarg
Copy link
Contributor

dentarg commented May 6, 2019

Here's the upstream issue for this: bundler/bundler#6854

And they have two outstanding PRs for it:

@dentarg
Copy link
Contributor

dentarg commented Jun 12, 2019

Progress is being made, rubygems/bundler#6854 was closed upstream by rubygems/bundler#7199 :)

@dentarg
Copy link
Contributor

dentarg commented Aug 28, 2019

Looks like the fix will be in Bundler v2.1 (twingly/twingly-url#139 (comment)). I've also changed our Rubygems settings to not require OTP code on gem push.

@dentarg dentarg closed this as completed Aug 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants