You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don’t need help really, I'm just curious about a situation I ran across, and I think Q&A is the right category, but I'm not sure.
The sorbet-static gem uploads identical copies of the pre-compiled binary for darwin-{14..22} every day https://rubygems.org/gems/sorbet-static/versions . There are no differences between any of them except for the kernel version number in the gemspec, the pre-compiled binary is the same in all of them.
It's worked fine, I've ran into a small edge case due to using nix and that causing me to run ruby built on darwin-22 on a darwin-21 machine. So I opened a PR to add a version-less upload.
I know the maintainers of Sorbet are hesitant to change their gem strategy ( sorbet/sorbet#6061 (comment) ) but it just made me curious: Is there any benefit to having all those specific versions? I don’t know enough about how ruybgems deals with platform versions to know.
I hope they take my PR to fix my small edge-case, but maybe it'd be nice if there weren't so many uplaods to rubygems.org if there isn't a reason anymore. I know other gems with pre-compiled binaries like Nokogiri don't do this.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I don’t need help really, I'm just curious about a situation I ran across, and I think Q&A is the right category, but I'm not sure.
The
sorbet-static
gem uploads identical copies of the pre-compiled binary for darwin-{14..22} every day https://rubygems.org/gems/sorbet-static/versions . There are no differences between any of them except for the kernel version number in the gemspec, the pre-compiled binary is the same in all of them.It's worked fine, I've ran into a small edge case due to using nix and that causing me to run ruby built on darwin-22 on a darwin-21 machine. So I opened a PR to add a version-less upload.
I know the maintainers of Sorbet are hesitant to change their gem strategy ( sorbet/sorbet#6061 (comment) ) but it just made me curious: Is there any benefit to having all those specific versions? I don’t know enough about how ruybgems deals with platform versions to know.
I hope they take my PR to fix my small edge-case, but maybe it'd be nice if there weren't so many uplaods to rubygems.org if there isn't a reason anymore. I know other gems with pre-compiled binaries like Nokogiri don't do this.
Beta Was this translation helpful? Give feedback.
All reactions