Development CS Software Engineering CI/CD [CI/CD] Disabling fastlane Update Check and Changelog Logs

Overview

This post covers how to disable fastlane’s update check log and changelog log.

Introduction

When a lane execution finishes, regardless of whether it succeeds or fails, an update check and changelog log like the one below is printed, making it inconvenient to review the lane execution logs. We get it, there’s an update – now stop the logs!

#######################################################################
# fastlane 2.201.1 is available. You are on 2.196.0.
# You should use the latest version.
# Please update using `bundle update fastlane`.
#######################################################################

2.201.1 Hotfixes for scan and trainer
* [scan] prevent error from raising and prevent xcresult processing when multiple devices with xcpretty (#19829) via Josh Holtz
* [trainer] Make new options used by scan public (to fix crash) (#19828) via Josh Holtz
* [scan][xcov] set xcresult path in SharedValues and use as default in xcov (#19825) via Josh Holtz

...

To see all new releases, open https://github.com/fastlane/fastlane/releases

Please update using `bundle update fastlane`

Steps

1. Disable Only the Changelog Log

  • Add the following global environment variable to your shell configuration file.

    code .zshrc
    
    export FASTLANE_HIDE_CHANGELOG="1"
    
    source .zshrc
    
  • After completely closing and reopening the shell, running a lane will print only the update check log as shown below.

    #######################################################################
    # fastlane 2.201.1 is available. You are on 2.196.0.
    # You should use the latest version.
    # Please update using `bundle update fastlane`.
    # To see what's new, open https://github.com/fastlane/fastlane/releases.
    #######################################################################
    

2. Disable Both Update Check and Changelog Logs

  • Add the following global environment variable to your shell configuration file.

    code .zshrc
    
    export FASTLANE_SKIP_UPDATE_CHECK="1"
    
    source .zshrc
    
  • After completely closing and reopening the shell, running a lane will no longer print any such logs.

References

Leave a comment