Update Fastlane fails when included in fastfile

circle.yml

#1

Hi there,
If I add fast lane_update to my fastfile is seems to fail at that step. Here is the output.

[13:54:30]: --- Step: update_fastlane ---
[13:54:30]: -----------------------------
[13:54:30]: Looking for updates for fastlane...
[13:54:33]: Updating fastlane from 2.85.0 to 2.96.1... 🚀

I then read another article that says instead of updating fastlane from the fastfile, I should update using the following connate in my config.yml file.

dependecies:
  pre:
    - gem update fastlane

Is this still relevant and where would I add it? Below is a copy of my config.yml file too.

    working_directory: ~/code
    docker:
      - image: circleci/android:api-25-alpha
    environment:
      JVM_OPTS: -Xmx3200m
    steps:
      - checkout
      - restore_cache:
          key: jars-{{ checksum "build.gradle" }}-{{ checksum  "app/build.gradle" }}
      - run:
          name: Download Dependencies
          command: ./gradlew androidDependencies
      - save_cache:
          paths:
            - ~/.gradle
          key: jars-{{ checksum "build.gradle" }}-{{ checksum  "app/build.gradle" }}
      - restore_cache:
          key: 1-gems-{{ checksum "Gemfile.lock" }}
      - run: bundle check || bundle install --path vendor/bundle
      - save_cache:
          key: 1-gems-{{ checksum "Gemfile.lock" }}
          paths:
            - vendor/bundle        
      - run:
          name: Run Fastlane
          command: bundle exec fastlane $FASTLANE_LANE package_id:$PACKAGE_ID

#2

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.