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 push gems: "Platform can't be blank" #5355

Open
mattbrictson opened this issue Dec 21, 2024 · 0 comments
Open

Cannot push gems: "Platform can't be blank" #5355

mattbrictson opened this issue Dec 21, 2024 · 0 comments
Labels

Comments

@mattbrictson
Copy link

Steps to Reproduce

  1. Attempt to publish a new gem version by running rake release (using the standard bundler/gem_tasks)
  2. Enter OTP code
  3. Push to rubygems fails: "There was a problem saving your gem"

Expected Behavior

I expect the "Pushing gem to https://rubygems.org" step of the release gem task to succeed.

Current Behavior

$ rake release
jess 1.4.2 built to pkg/jess-1.4.2.gem.
Tagged v1.4.2.
Pushed git commits and release tag.
Pushing gem to https://rubygems.org...
You have enabled multi-factor authentication. Please enter OTP code.
Code:   ******
There was a problem saving your gem: Platform is invalid, Platform can only include letters, numbers, dashes, and underscores, Full name can not end with a period, dash, or underscore, Platform can't be blank

Full list of errors:

  • Platform is invalid
  • Platform can only include letters, numbers, dashes, and underscores
  • Full name can not end with a period, dash, or underscore
  • Platform can't be blank

Environment

RubyGems version: 3.6.1
Bundler version: 2.6.1

Additional Context

It seems that something is causing the platform value to be interpreted as a blank value. My gemspecs do not explicitly set a platform, so I would expect the default platform to be used, as documented here: https://guides.rubygems.org/specification-reference/#platform=

Did something change recently that is causing the default platform value to no longer populate?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant