gem yank not working

Dan Macumber's Avatar

Dan Macumber

24 Feb, 2011 03:12 PM

Hello, I want to update the package I put up for https://rubygems.org/gems/vtkCharts/versions/0.1.0-x86-mswin32-60

However, gem push tells me:

C:\working\vtkCharts\vtkCharts\build\ruby\Release>gem push vtkCharts-0.1.0-x86-mswin32-60.gem
Pushing gem to RubyGems.org...
Repushing of gem versions is not allowed.
Please use gem yank to remove bad gem releases.

When I try to gem yank, I get:

C:\working\vtkCharts\vtkCharts\build\ruby\Release>gem yank vtkCharts -v 0.1.0
Yanking gem from RubyGems.org...
The version 0.1.0 does not exist.

The version listed for this package on rubygems is 0.1.0, what am I doing wrong? Also, why isn't there a gem push --force-overwrite option?

Thanks a lot,
Dan

  1. Support Staff 1 Posted by Nick Quaranto on 24 Feb, 2011 03:28 PM

    Nick Quaranto's Avatar

    Your gem has a "platform" option, so you need to yank with -p x86-mswin32-60.

    Why we don't allow you to overwrite gems:

    • Mirrors that comb the site (with gem mirror) would be out of sync.
    • Clients can't verify the contents of gems (via MD5 or something similar) so they could download different versions, expecting the same code.
    • You're not going to run out of gem versions, just push a new one.
  2. 2 Posted by Dan Macumber on 24 Feb, 2011 03:31 PM

    Dan Macumber's Avatar

    That didn't work either:

    C:\working\vtkCharts\vtkCharts\build\ruby\Release>gem yank vtkCharts -v 0.1.0 -p x86-mswin32-60
    ERROR: While executing gem ... (OptionParser::InvalidOption)

    invalid option: -p
    

    C:\working\vtkCharts\vtkCharts\build\ruby\Release>gem -v
    1.3.7

  3. Support Staff 3 Posted by Nick Quaranto on 24 Feb, 2011 03:36 PM

    Nick Quaranto's Avatar

    What version of the gemcutter gem do you have? gem list gemcutter. gem yank is not a part of RubyGems proper yet.

  4. 4 Posted by Dan Macumber on 24 Feb, 2011 03:37 PM

    Dan Macumber's Avatar

    C:\working\vtkCharts\vtkCharts\build\ruby\Release>gem update gemcutter
    Updating installed gems
    Nothing to update

    C:\working\vtkCharts\vtkCharts\build\ruby\Release>gem list gemcutter

    LOCAL GEMS

    gemcutter (0.6.1)

  5. Support Staff 5 Posted by Nick Quaranto on 24 Feb, 2011 03:41 PM

    Nick Quaranto's Avatar

    Maybe I haven't released the code with that flag...I need to look into it more.

    In any case, I just hopped into our db and yanked it, so you're all set.

  6. 6 Posted by Dan Macumber on 24 Feb, 2011 03:50 PM

    Dan Macumber's Avatar

    Thanks a lot,I see that the version has been yanked but push is still not working:

    C:\working\vtkCharts\vtkCharts\build\ruby\Release>gem push vtkCharts-0.1.0-x86-mswin32-60.gem
    Pushing gem to RubyGems.org...
    Repushing of gem versions is not allowed.
    Please use gem yank to remove bad gem releases.

  7. 7 Posted by Luis Lavena on 24 Feb, 2011 03:52 PM

    Luis Lavena's Avatar

    You can't re-release the same version, even if yanked.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

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