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" #139

Closed
dentarg opened this issue Aug 28, 2019 · 2 comments
Closed

Cannot published gem using "rake release" #139

dentarg opened this issue Aug 28, 2019 · 2 comments

Comments

@dentarg
Copy link
Collaborator

dentarg commented Aug 28, 2019

Same as twingly/capistrano-twingly#48, but adding an issue here for visibility

Trying to release with the rake task just hangs, the output about the error came after I hit enter a few times:

$ bundle exec rake release
twingly-url 6.0.2 built to pkg/twingly-url-6.0.2.gem.
Tagged v6.0.2.
Pushed git commits and tags.


rake aborted!
Pushing gem to https://rubygems.org...
You have enabled multi-factor authentication. Please enter OTP code.
Code:   You have enabled multifactor authentication but no OTP code provided. Please fill it and retry.
/Users/dentarg/.gem/ruby/2.6.3/bin/bundle:23:in `load'
/Users/dentarg/.gem/ruby/2.6.3/bin/bundle:23:in `<main>'
Tasks: TOP => release => release:rubygem_push
(See full trace by running task with --trace)

I completed the release by doing

$ gem push pkg/twingly-url-6.0.2.gem
Pushing gem to https://rubygems.org...
You have enabled multi-factor authentication. Please enter OTP code.
Code:   414317
Successfully registered gem: twingly-url (6.0.2)
@dentarg
Copy link
Collaborator Author

dentarg commented Aug 28, 2019

It looks like the fix in bundler is in v2.1.0.pre.1.

Time to try to go to Bundler 2 I guess. I'm still using:

$ bundle --version
Bundler version 1.17.3

@dentarg
Copy link
Collaborator Author

dentarg commented Aug 28, 2019

I changed our MFA settings to "UI only" (needed for #135 anyway), so we can close this.

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

1 participant