0xfurai / 0xfurai/docker-react-native-fastlane

Support for Ruby 3

オープン
#3 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Dockerfile
スター
3
フォーク
7
PR マージ指標
30日以内にマージされた PR はありません

説明

Hi! @Piotrovskyi, I appreciate your efforts on creating and maintaining this image. It has been helpful for me.

Recently I have run into this issue running on this image:
```
$ gem install fastlane -v 2.217.0
ERROR: Error installing fastlane:
The last version of google-cloud-env (~> 2.1) to support your Ruby & RubyGems was 2.1.1. Try installing it with `gem install google-cloud-env -v 2.1.1` and then running the current command again
google-cloud-env requires Ruby version >= 3.0. The current ruby version is 2.7.1.83.
```

So naturally I tried the above suggestion like below:
```
$ gem install google-cloud-env -v 2.1.1
ERROR: Error installing google-cloud-env:
The last version of faraday-net_http (>= 2.0, < 3.4) to support your Ruby & RubyGems was 3.0.2. Try installing it with `gem install faraday-net_http -v 3.0.2` and then running the current command again
faraday-net_http requires Ruby version >= 3.0.0. The current ruby version is 2.7.1.83.
```

And again
```
$ gem install faraday-net_http -v 3.0.2
Successfully installed faraday-net_http-3.0.2
$ gem install google-cloud-env -v 2.1.1
ERROR: Error installing google-cloud-env:
The last version of faraday (>= 1.0, < 3.a) to support your Ruby & RubyGems was 2.8.1. Try installing it with `gem install faraday -v 2.8.1` and then running the current command again
faraday requires Ruby version >= 3.0. The current ruby version is 2.7.1.83.
```

As fastlane progresses, its requirement for ruby seems to progress as well. I wish to open this conversation with you on updating ruby to 3+.

I have taken a look at your dockerfile. The URL scheme for ruby is a little different, now at `https://cache.ruby-lang.org/pub/ruby/3.3/ruby-3.3.4.tar.xz`. To my untrained eyes, it seems we just replace the URL. However, I'm completely new in ruby world, I'm not sure if ruby 3 is an in-place replacement for ruby 2.7. I'm wondering you might be so kind as to upgrade the ruby dependency to increase the lifespan of this image.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

Dockerfile が変更するメインファイルです。現在の Ruby ダウンロード URL を確認し、https://cache.ruby-lang.org/pub/ruby/ から Ruby 3.x バージョンに置き換えてください。イメージのビルドをテストし、fastlane とその依存関係が正しくインストールされることを確認します。イメージが React Native Android アプリのビルドに引き続き機能することを検証してください。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
docker, ruby
領域
backend, devops
issue の種類
機能追加
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
明確に書かれている
初心者へのやさしさ
55/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。