Open lukepighetti opened 1 year ago
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
any updates?
@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/fastlane-action@v3.1.0
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/fastlane-action@v3.1.0
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!
I had the same issue after upgrading to Fastlane 2.222.0
.
Rolling back to Fastlane 2.217.0
solved it for me.
I get the error
with the action