After I yanked a version, I can never push without an error

justin.gordon's Avatar

justin.gordon

21 Mar, 2017 10:08 PM

The gem pushes: https://rubygems.org/gems/react_on_rails

but I always get an error when I run this command:

https://github.com/shakacode/react_on_rails/blob/master/rakelib/rel...

  # Release the new gem version
  sh_in_dir(gem_root, "gem release") unless is_dry_run
<pre><code>
## Error</code>
</pre>
WARNING:  See http://guides.rubygems.org/specification-reference/ for help  
  Successfully built RubyGem
  Name: react_on_rails
  Version: 6.8.1
  File: react_on_rails-6.8.1.gem
Pushing gem to https://rubygems.org...  
Repushing of gem versions is not allowed.  
Please use `gem yank` to remove bad gem releases.  
rake aborted!  
Command failed with status (1): [cd /Users/justin/shakacode/react-on-rails/...]  
/Users/justin/shakacode/react-on-rails/react_on_rails/rakelib/task_helpers.rb:20:in `block in sh_in_dir'
/Users/justin/shakacode/react-on-rails/react_on_rails/rakelib/task_helpers.rb:20:in `each'
/Users/justin/shakacode/react-on-rails/react_on_rails/rakelib/task_helpers.rb:20:in `sh_in_dir'
/Users/justin/shakacode/react-on-rails/react_on_rails/rakelib/release.rake:64:in `block in <top (required)>'
/Users/justin/.rvm/gems/ruby-2.3.1@react_on_rails/gems/rake-12.0.0/exe/rake:27:in `<top (required)>'
Tasks: TOP => release  
(See full trace by running task with --trace)
<pre><code></code>
</pre>
  1. Support Staff 1 Posted by Eric Hodel on 22 Mar, 2017 01:23 AM

    Eric Hodel's Avatar

    Repushing of gem versions is not allowed.

    This prevents you from pushing a version with different behavior. Users depend on consistent behavior of gems.

    Change the version to 6.8.2 or 6.8.1.1.

  2. Eric Hodel closed this discussion on 22 Mar, 2017 01:23 AM.

  3. justin.gordon re-opened this discussion on 23 Mar, 2017 09:07 AM

  4. 2 Posted by justin.gordon on 23 Mar, 2017 09:07 AM

    justin.gordon's Avatar

    The version I removed was a LONG time ago. I'm not trying to push the same version.

  5. 3 Posted by justin.gordon on 24 Mar, 2017 03:32 AM

    justin.gordon's Avatar

    Eric Hodel, is there any way that I can help you troubleshoot this. As you can see from the output, we get an error, yet 6.8.1 was released!

    Does my script seem to be trying to push twice?

    https://github.com/shakacode/react_on_rails/blob/master/rakelib/rel...

  6. 4 Posted by justin.gordon on 24 Mar, 2017 08:51 PM

    justin.gordon's Avatar

    I opened an issue here:

    https://github.com/shakacode/react_on_rails/issues/767

    I need to release 6.8.2 ASAP, and maybe I can collect some logs to troubleshoot? What shall I do?

  7. Support Staff 5 Posted by Eric Hodel on 24 Mar, 2017 08:59 PM

    Eric Hodel's Avatar

    What logs did you get from trying to release 6.8.2?

  8. 6 Posted by justin.gordon on 25 Mar, 2017 05:19 AM

    justin.gordon's Avatar

    Erick, I have not yet tried pushing this. What's the best way to ensure we get good debug information?

  9. 7 Posted by justin.gordon on 25 Mar, 2017 05:59 AM

    justin.gordon's Avatar

    I tried again. Gem is published. Server sends back an error mesage.

    + react-on-rails@6.8.2
    No distRepo provided, done.
    cd /Users/justin/shakacode/react-on-rails/react_on_rails && gem release
    WARNING:  open-ended dependency on connection_pool (>= 0) is not recommended
      if connection_pool is semantically versioned, use:
        add_runtime_dependency 'connection_pool', '~> 0'
    WARNING:  open-ended dependency on rails (>= 3.2) is not recommended
      if rails is semantically versioned, use:
        add_runtime_dependency 'rails', '~> 3.2'
    WARNING:  open-ended dependency on addressable (>= 0) is not recommended
      if addressable is semantically versioned, use:
        add_runtime_dependency 'addressable', '~> 0'
    WARNING:  open-ended dependency on rspec (>= 0, development) is not recommended
      if rspec is semantically versioned, use:
        add_development_dependency 'rspec', '~> 0'
    WARNING:  open-ended dependency on coveralls (>= 0, development) is not recommended
      if coveralls is semantically versioned, use:
        add_development_dependency 'coveralls', '~> 0'
    WARNING:  open-ended dependency on generator_spec (>= 0, development) is not recommended
      if generator_spec is semantically versioned, use:
        add_development_dependency 'generator_spec', '~> 0'
    WARNING:  open-ended dependency on pry (>= 0, development) is not recommended
      if pry is semantically versioned, use:
        add_development_dependency 'pry', '~> 0'
    WARNING:  open-ended dependency on pry-byebug (>= 0, development) is not recommended
      if pry-byebug is semantically versioned, use:
        add_development_dependency 'pry-byebug', '~> 0'
    WARNING:  open-ended dependency on pry-stack_explorer (>= 0, development) is not recommended
      if pry-stack_explorer is semantically versioned, use:
        add_development_dependency 'pry-stack_explorer', '~> 0'
    WARNING:  open-ended dependency on pry-doc (>= 0, development) is not recommended
      if pry-doc is semantically versioned, use:
        add_development_dependency 'pry-doc', '~> 0'
    WARNING:  open-ended dependency on pry-state (>= 0, development) is not recommended
      if pry-state is semantically versioned, use:
        add_development_dependency 'pry-state', '~> 0'
    WARNING:  open-ended dependency on pry-toys (>= 0, development) is not recommended
      if pry-toys is semantically versioned, use:
        add_development_dependency 'pry-toys', '~> 0'
    WARNING:  open-ended dependency on pry-rescue (>= 0, development) is not recommended
      if pry-rescue is semantically versioned, use:
        add_development_dependency 'pry-rescue', '~> 0'
    WARNING:  open-ended dependency on binding_of_caller (>= 0, development) is not recommended
      if binding_of_caller is semantically versioned, use:
        add_development_dependency 'binding_of_caller', '~> 0'
    WARNING:  open-ended dependency on awesome_print (>= 0, development) is not recommended
      if awesome_print is semantically versioned, use:
        add_development_dependency 'awesome_print', '~> 0'
    WARNING:  open-ended dependency on gem-release (>= 0, development) is not recommended
      if gem-release is semantically versioned, use:
        add_development_dependency 'gem-release', '~> 0'
    WARNING:  See http://guides.rubygems.org/specification-reference/ for help
      Successfully built RubyGem
      Name: react_on_rails
      Version: 6.8.2
      File: react_on_rails-6.8.2.gem
    Pushing gem to https://rubygems.org...
    Successfully registered gem: react_on_rails (6.8.2)
    Deleting left over gem file react_on_rails-6.8.2.gem
    WARNING:  open-ended dependency on connection_pool (>= 0) is not recommended
      if connection_pool is semantically versioned, use:
        add_runtime_dependency 'connection_pool', '~> 0'
    WARNING:  open-ended dependency on rails (>= 3.2) is not recommended
      if rails is semantically versioned, use:
        add_runtime_dependency 'rails', '~> 3.2'
    WARNING:  open-ended dependency on addressable (>= 0) is not recommended
      if addressable is semantically versioned, use:
        add_runtime_dependency 'addressable', '~> 0'
    WARNING:  open-ended dependency on rspec (>= 0, development) is not recommended
      if rspec is semantically versioned, use:
        add_development_dependency 'rspec', '~> 0'
    WARNING:  open-ended dependency on coveralls (>= 0, development) is not recommended
      if coveralls is semantically versioned, use:
        add_development_dependency 'coveralls', '~> 0'
    WARNING:  open-ended dependency on generator_spec (>= 0, development) is not recommended
      if generator_spec is semantically versioned, use:
        add_development_dependency 'generator_spec', '~> 0'
    WARNING:  open-ended dependency on pry (>= 0, development) is not recommended
      if pry is semantically versioned, use:
        add_development_dependency 'pry', '~> 0'
    WARNING:  open-ended dependency on pry-byebug (>= 0, development) is not recommended
      if pry-byebug is semantically versioned, use:
        add_development_dependency 'pry-byebug', '~> 0'
    WARNING:  open-ended dependency on pry-stack_explorer (>= 0, development) is not recommended
      if pry-stack_explorer is semantically versioned, use:
        add_development_dependency 'pry-stack_explorer', '~> 0'
    WARNING:  open-ended dependency on pry-doc (>= 0, development) is not recommended
      if pry-doc is semantically versioned, use:
        add_development_dependency 'pry-doc', '~> 0'
    WARNING:  open-ended dependency on pry-state (>= 0, development) is not recommended
      if pry-state is semantically versioned, use:
        add_development_dependency 'pry-state', '~> 0'
    WARNING:  open-ended dependency on pry-toys (>= 0, development) is not recommended
      if pry-toys is semantically versioned, use:
        add_development_dependency 'pry-toys', '~> 0'
    WARNING:  open-ended dependency on pry-rescue (>= 0, development) is not recommended
      if pry-rescue is semantically versioned, use:
        add_development_dependency 'pry-rescue', '~> 0'
    WARNING:  open-ended dependency on binding_of_caller (>= 0, development) is not recommended
      if binding_of_caller is semantically versioned, use:
        add_development_dependency 'binding_of_caller', '~> 0'
    WARNING:  open-ended dependency on awesome_print (>= 0, development) is not recommended
      if awesome_print is semantically versioned, use:
        add_development_dependency 'awesome_print', '~> 0'
    WARNING:  open-ended dependency on gem-release (>= 0, development) is not recommended
      if gem-release is semantically versioned, use:
        add_development_dependency 'gem-release', '~> 0'
    WARNING:  See http://guides.rubygems.org/specification-reference/ for help
      Successfully built RubyGem
      Name: react_on_rails
      Version: 6.8.2
      File: react_on_rails-6.8.2.gem
    Pushing gem to https://rubygems.org...
    Repushing of gem versions is not allowed.
    Please use gem yank to remove bad gem releases.
    rake aborted!
    Command failed with status (1): [cd /Users/justin/shakacode/react-on-rails/...]
    /Users/justin/shakacode/react-on-rails/react_on_rails/rakelib/task_helpers.rb:20:in block in sh_in_dir&#39;
    /Users/justin/shakacode/react-on-rails/react_on_rails/rakelib/task_helpers.rb:20:ineach'
    /Users/justin/shakacode/react-on-rails/react_on_rails/rakelib/task_helpers.rb:20:in sh_in_dir&#39;
    /Users/justin/shakacode/react-on-rails/react_on_rails/rakelib/release.rake:64:inblock in <top (required)>'
    /Users/justin/.rvm/gems/ruby-2.3.1@react_on_rails/gems/rake-12.0.0/exe/rake:27:in `<top (required)>'
    Tasks: TOP => release
    (See full trace by running task with --trace)
    
  10. Support Staff 8 Posted by David Radcliffe on 26 Mar, 2017 10:36 PM

    David Radcliffe's Avatar

    I'm going to close this since it's not a rubygems problem, further discussion can happen on this issue: https://github.com/svenfuchs/gem-release/issues/63

  11. David Radcliffe closed this discussion on 26 Mar, 2017 10:36 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac