Skip to content
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

command not found 'fastlane' #106

Open
lukepighetti opened this issue Jan 19, 2023 · 4 comments
Open

command not found 'fastlane' #106

lukepighetti opened this issue Jan 19, 2023 · 4 comments

Comments

@lukepighetti
Copy link

I get the error

bundler: command not found: fastlane
[27](https://github.com/lukepighetti/vgl/actions/runs/3954664590/jobs/6772232738#step:6:28)
Install missing gem executables with `bundle install`

with the action

jobs:
  deploy:
    name: Deploy to TestFlight
    runs-on: macos-latest
    timeout-minutes: 60

    steps:
      - uses: actions/checkout@v3
      - uses: subosito/flutter-action@v2
        with:
          channel: stable
      - run: flutter pub get
      - uses: ruby/setup-ruby@v1
        with:
          ruby-version: "3.1.2"
          working-directory: "ios"
      - uses: maierj/[email protected]
        with:
          lane: beta
          subdirectory: "ios"
@maierj
Copy link
Owner

maierj commented Jan 21, 2023

Try adding bundler-cache: true to the setup-ruby step

- uses: ruby/setup-ruby@v1
  with:
    ruby-version: "3.1.2"
    working-directory: "ios"
    bundler-cache: true

@xaviertansde
Copy link

any updates?

@idlework
Copy link

idlework commented May 22, 2024

@maierj I have this same issue. It started when I updated to Fastlane action 3.1.0.

The project has a .ruby-version in the root, and the Github Action contains:

- name: Install Ruby
  uses: ruby/setup-ruby@v1
  with:
    bundler-cache: true

- name: Build Android
  uses: maierj/[email protected]
  with:
    lane: 'android development'
  env:
    BUNDLE_ID: ${{ secrets.BUNDLE_ID }}
    ANDROID_KEYSTORE_PASSWORD: ${{ secrets.ANDROID_KEYSTORE_PASSWORD }}
    ANDROID_KEYSTORE_ALIAS: ${{ secrets.ANDROID_KEYSTORE_ALIAS }}
    FIREBASE_ANDROID_APP_ID: ${{ secrets.FIREBASE_ANDROID_APP_ID }}
    GIT_PERSONAL_ACCESS_TOKEN: ${{ secrets.GIT_PERSONAL_ACCESS_TOKEN }}

Resulting in error log:

Run maierj/[email protected]
  with:
    lane: android development
  env:
    JAVA_HOME: /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/17.0.11-9/x64
    JAVA_HOME_17_X64: /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/17.0.11-9/x64
    BUNDLE_ID: ***
    ANDROID_KEYSTORE_PASSWORD: ***
    ANDROID_KEYSTORE_ALIAS: ***
    FIREBASE_ANDROID_APP_ID: ***
    GIT_PERSONAL_ACCESS_TOKEN: ***
Executing lane android development on Linux.
bundler: failed to load command: fastlane (/home/runner/work/app/app/vendor/bundle/ruby/2.7.0/bin/fastlane)
/home/runner/work/app/app/vendor/bundle/ruby/2.7.0/gems/fastlane-2.220.0/fastlane/lib/fastlane/erb_template_helper.rb:20:in `<module:Fastlane>': uninitialized constant Fastlane::OpenStruct (NameError)

bundler-cache: true was already in the action, so the suggested fix in this thread is not applicable here.

Would you have an other solution?

Thanks!

@ferdinandfrank
Copy link

I had the same issue after upgrading to Fastlane 2.222.0.
Rolling back to Fastlane 2.217.0 solved it for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants