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

Support for Ruby 3

Aperta
#3 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Dockerfile
Stelle
3
Fork
7
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

Il Dockerfile è il file principale da modificare. Controlla l'URL di download corrente di Ruby e sostituiscila con una versione Ruby 3.x da https://cache.ruby-lang.org/pub/ruby/. Testa la build dell'immagine e assicurati che fastlane e le sue dipendenze vengano installate correttamente. Verifica che l'immagine funzioni ancora per la build di app React Native Android.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
docker, ruby
Ambito
backend, devops
Tipo di issue
Funzionalità
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Specificata chiaramente
Idoneità per principianti
55/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.