-
Notifications
You must be signed in to change notification settings - Fork 38
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
[Update docs] bundler: failed to load command: fastlane (/opt/hostedtoolcache/Ruby/3.0.0/x64/bin/fastlane) #64
Comments
@maierj @KevinColemanInc I'm facing the same error as above. Please check my files below. Its basically as follows;
name: Deploy
on:
push:
branches: [ 3934 ]
jobs:
distribute:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Ruby
uses: actions/setup-ruby@v1
with:
ruby-version: '>= 2.6'
- name: Install Ruby bundle
run: |
bundle config path vendor/bundle
bundle install --jobs 4 --retry 3
- name: Configure Keystore
run: |
mkdir app
echo "$ANDROID_KEYSTORE_FILE" | base64 -d > app/keystore.jks
echo "storeFile=keystore.jks" >> keystore.properties
echo "keyAlias=$KEYSTORE_KEY_ALIAS" >> keystore.properties
echo "storePassword=$KEYSTORE_STORE_PASSWORD" >> keystore.properties
echo "keyPassword=$KEYSTORE_KEY_PASSWORD" >> keystore.properties
env:
ANDROID_KEYSTORE_FILE: ${{ secrets.ANDROID_KEYSTORE_FILE }}
KEYSTORE_KEY_ALIAS: ${{ secrets.KEYSTORE_KEY_ALIAS }}
KEYSTORE_KEY_PASSWORD: ${{ secrets.KEYSTORE_KEY_PASSWORD }}
KEYSTORE_STORE_PASSWORD: ${{ secrets.KEYSTORE_STORE_PASSWORD }}
- name: Create Google Play Config file
run: |
echo "$GPLAY_CONFIG_JSON" > gplay_config.json.b64
base64 -d -i gplay_config.json.b64 > gplay_config.json
env:
GPLAY_CONFIG_JSON: ${{ secrets.GPLAY_CONFIG_JSON }}
- uses: maierj/fastlane-action@v2.0.0
with:
lane: 'beta'
subdirectory: 'android' Please guide us through this. Thanks! The error log:
|
Are you using ruby 3.0? I haven't started using this yet so I don't know how much advice I can give. sorry |
@Warns Specify By specifying |
Based on the latest note in the readme file I changed the ruby tag, probably misunderstood it. Indeed it passed that step by specifying the version as |
@Warns Don't worry, you did not misunderstand anything 😄 You followed the documentation perfectly, unfortunately the documentation is wrong. That is why I made this issue, to notify the maintainer that they need to update their documentation. |
Hi guys (@reilem @Warns), I'll change the documentation to recommend the latest Ruby version before 3.0.0, which is 2.7.2. I'll also add a hint that fastlane doesn't support Ruby 3 yet. |
Awesome thanks! I will also change my setup to use 2.7.2 then. 😄 |
EDIT: to clear up some misunderstandings, this issue is primarily about fixing and updating the documentation. I am reporting this problem, and also have a solution for it. Specifying
ruby-version: '2.6.x'
in the setup-ruby action will fix the problem. However, the documentation still says>= 2.6
. So I propose we change the documentation to include the ruby-version setup step using a version that will work.When I try to use this action with the ruby version recommended in the docs (>= 2.6) I get the following error:
The relevant workflow part looks like this:
Specifying
ruby-version: '2.6.x'
in the setup-ruby action does work. So we should update the docs to include this.The text was updated successfully, but these errors were encountered: