postmodern / ruby-install

Installs Ruby, JRuby, TruffleRuby, or mruby
MIT License
1.9k stars 252 forks source link

ruby-3.0.0-preview2 can’t be downloaded because it has no .tar.bz2 #385

Closed tomstuart closed 3 years ago

tomstuart commented 3 years ago

3.0.0-preview2 was just released but they haven’t published a .tar.bz2 download. If this is intentional then the use_tar_xz_for_ruby changes might need to be prioritised.

postmodern commented 3 years ago

It's finally happening.

postmodern commented 3 years ago

Merged into master. Will release 0.8.0 shortly.

tomstuart commented 3 years ago

Thank you!

todd-a-jacobs commented 3 years ago

Per the Ruby downloads page:

Ruby 3.0.0-preview2
sha256: 9de8661565c2b1007d91a580e9a7e02d23f1e8fc8df371feb15a2727aa05fd9a

I mention it so that the SHA-256 can be included if/when the ruby-install definitions are updated, not just the installer logic. Right now, it fails with:

$ ruby-install ruby 3.0.0-preview-2 --sha256 9de8661565c2b1007d91a580e9a7e02d23f1e8fc8df371feb15a2727aa05fd9a
!!! Download of https://cache.ruby-lang.org/pub/ruby/3.0/ruby-3.0.0-preview-2.tar.bz2 failed!

as expected, but the archive's hash should be updated as well.

postmodern commented 3 years ago

@todd-a-jacobs that appears to be the sha256 of the .tar.gz file, not the .tar.xz (will be the new default). The sha256 checksums in ruby-versions matches the ruby-lang.org news post.

postmodern commented 3 years ago

0.8.0 has been released.