fastlane / fastlane

🚀 The easiest way to automate building and releasing your iOS and Android apps

Home Page:https://fastlane.tools

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error "registry may be down." when tried to install node packages using Yarn

calamarico opened this issue · comments

New Issue Checklist

Issue Description

Today yarn returns an error when installing packages:
image

Command executed

yarn upgrade
yarn

Complete output when running fastlane, including the stack trace and command used

╰─$ yarn 1 ↵ yarn install v1.22.19 info No lockfile found. [1/4] 🔍 Resolving packages... warning aws-amplify > @aws-amplify/analytics > uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. warning aws-amplify > @aws-amplify/datastore > uuid@3.3.2: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. warning aws-amplify > @aws-amplify/predictions > uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. warning aws-amplify > @aws-amplify/pubsub > uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. warning aws-amplify > @aws-amplify/api > @aws-amplify/api-graphql > uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. warning aws-amplify > @aws-amplify/predictions > @aws-sdk/client-comprehend > uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. warning aws-amplify > @aws-amplify/predictions > @aws-sdk/client-translate > uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. warning aws-amplify > @aws-amplify/analytics > @aws-sdk/client-firehose > @aws-sdk/middleware-retry > uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. warning aws-amplify > @aws-amplify/analytics > @aws-sdk/client-firehose > @aws-sdk/url-parser-native > url > querystring@0.2.0: The querystring API is considered Legacy. new code should use the URLSearchParams API instead. warning axios@0.19.2: Critical security vulnerability fixed in v0.21.1. For more information, see https://github.com/axios/axios/pull/3410 warning react-native > @react-native-community/cli-platform-ios > xcode > uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. warning react-native > @react-native-community/cli > @react-native-community/cli-plugin-metro > metro-core > jest-haste-map > sane@4.1.0: some dependency vulnerabilities fixed, support for node < 10 dropped, and newer ECMAScript syntax/features added warning react-native > @react-native-community/cli > @react-native-community/cli-plugin-metro > metro > metro-minify-uglify > uglify-es@3.3.9: support for ECMAScript is superseded by uglify-jsas of v3.13.0 warning react-native > react-native-codegen > jscodeshift > micromatch > snapdragon > source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated warning react-native > react-native-codegen > jscodeshift > micromatch > snapdragon > source-map-resolve > resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated warning react-native > react-native-codegen > jscodeshift > micromatch > snapdragon > source-map-resolve > source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated warning react-native > react-native-codegen > jscodeshift > micromatch > snapdragon > source-map-resolve > urix@0.1.0: Please see https://github.com/lydell/urix#deprecated warning react-native-code-push > code-push > superagent@6.1.0: Please upgrade to v7.0.2+ of superagent. We have fixed numerous issues with streams, form-data, attach(), filesystem errors not bubbling up (ENOENT on attach()), and all tests are now passing. See the releases tab for more information at <https://github.com/visionmedia/superagent/releases>. warning react-native-code-push > code-push > superagent > formidable@1.2.6: Please upgrade to latest, formidable@v2 or formidable@v3! Check these notes: https://bit.ly/2ZEqIau warning react-native-code-push > code-push > appcenter-file-upload-client > superagent@5.1.0: Please upgrade to v7.0.2+ of superagent. We have fixed numerous issues with streams, form-data, attach(), filesystem errors not bubbling up (ENOENT on attach()), and all tests are now passing. See the releases tab for more information at <https://github.com/visionmedia/superagent/releases>. warning react-native-code-push > code-push > appcenter-file-upload-client > superagent > formidable@1.2.6: Please upgrade to latest, formidable@v2 or formidable@v3! Check these notes: https://bit.ly/2ZEqIau warning react-native-reanimated > fbjs > core-js@2.6.12: core-js@<3.4 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Please, upgrade your dependencies to the actual version of core-js. warning react-native-snap-carousel > react-addons-shallow-compare > fbjs > core-js@1.2.7: core-js@<3.4 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Please, upgrade your dependencies to the actual version of core-js. warning redux-devtools-extension@2.13.9: Package moved to @redux-devtools/extension. warning @react-native-community/eslint-config > babel-eslint@10.1.0: babel-eslint is now @babel/eslint-parser. This package will no longer receive updates. warning code-push-cli > code-push > superagent@3.8.3: Please upgrade to v7.0.2+ of superagent. We have fixed numerous issues with streams, form-data, attach(), filesystem errors not bubbling up (ENOENT on attach()), and all tests are now passing. See the releases tab for more information at <https://github.com/visionmedia/superagent/releases>. warning code-push-cli > code-push > superagent > formidable@1.2.6: Please upgrade to latest, formidable@v2 or formidable@v3! Check these notes: https://bit.ly/2ZEqIau warning code-push-cli > code-push > superagent-proxy > proxy-agent > socks-proxy-agent > socks@1.1.10: If using 2.x branch, please upgrade to at least 2.1.6 to avoid a serious bug with socket data flow and an import issue introduced in 2.1.0 warning code-push-cli > plist > xmldom@0.1.31: Deprecated due to CVE-2021-21366 resolved in 0.5.0 warning code-push-cli > update-notifier > configstore > uuid@2.0.3: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. warning detox > tempfile > uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. error Received malformed response from registry for "fastlane". The registry may be down. info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command. ╭─daniel@MacBook-Pro-de-daniel ~/workspace/taxdown-mobile ‹develop●› ╰─$ yarn --capture-output 1 ↵ yarn install v1.22.19 info No lockfile found. [1/4] 🔍 Resolving packages... warning aws-amplify > @aws-amplify/analytics > uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. warning aws-amplify > @aws-amplify/datastore > uuid@3.3.2: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. warning aws-amplify > @aws-amplify/pubsub > uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. warning aws-amplify > @aws-amplify/predictions > uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. warning aws-amplify > @aws-amplify/api > @aws-amplify/api-graphql > uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. warning aws-amplify > @aws-amplify/predictions > @aws-sdk/client-translate > uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. warning aws-amplify > @aws-amplify/predictions > @aws-sdk/client-comprehend > uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. warning aws-amplify > @aws-amplify/analytics > @aws-sdk/client-pinpoint > @aws-sdk/middleware-retry > uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. warning aws-amplify > @aws-amplify/analytics > @aws-sdk/client-pinpoint > @aws-sdk/url-parser-native > url > querystring@0.2.0: The querystring API is considered Legacy. new code should use the URLSearchParams API instead. warning axios@0.19.2: Critical security vulnerability fixed in v0.21.1. For more information, see https://github.com/axios/axios/pull/3410 warning react-native > @react-native-community/cli-platform-ios > xcode > uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. warning react-native > @react-native-community/cli > @react-native-community/cli-plugin-metro > metro-core > jest-haste-map > sane@4.1.0: some dependency vulnerabilities fixed, support for node < 10 dropped, and newer ECMAScript syntax/features added warning react-native > react-native-codegen > jscodeshift > micromatch > snapdragon > source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated warning react-native > @react-native-community/cli > @react-native-community/cli-plugin-metro > metro > metro-minify-uglify > uglify-es@3.3.9: support for ECMAScript is superseded byuglify-js as of v3.13.0 warning react-native > react-native-codegen > jscodeshift > micromatch > snapdragon > source-map-resolve > resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated warning react-native > react-native-codegen > jscodeshift > micromatch > snapdragon > source-map-resolve > source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated warning react-native > react-native-codegen > jscodeshift > micromatch > snapdragon > source-map-resolve > urix@0.1.0: Please see https://github.com/lydell/urix#deprecated warning react-native-code-push > code-push > superagent@6.1.0: Please upgrade to v7.0.2+ of superagent. We have fixed numerous issues with streams, form-data, attach(), filesystem errors not bubbling up (ENOENT on attach()), and all tests are now passing. See the releases tab for more information at <https://github.com/visionmedia/superagent/releases>. warning react-native-code-push > code-push > superagent > formidable@1.2.6: Please upgrade to latest, formidable@v2 or formidable@v3! Check these notes: https://bit.ly/2ZEqIau warning react-native-code-push > code-push > appcenter-file-upload-client > superagent@5.1.0: Please upgrade to v7.0.2+ of superagent. We have fixed numerous issues with streams, form-data, attach(), filesystem errors not bubbling up (ENOENT on attach()), and all tests are now passing. See the releases tab for more information at <https://github.com/visionmedia/superagent/releases>. warning react-native-code-push > code-push > appcenter-file-upload-client > superagent > formidable@1.2.6: Please upgrade to latest, formidable@v2 or formidable@v3! Check these notes: https://bit.ly/2ZEqIau warning react-native-reanimated > fbjs > core-js@2.6.12: core-js@<3.4 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Please, upgrade your dependencies to the actual version of core-js. warning react-native-snap-carousel > react-addons-shallow-compare > fbjs > core-js@1.2.7: core-js@<3.4 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Please, upgrade your dependencies to the actual version of core-js. warning redux-devtools-extension@2.13.9: Package moved to @redux-devtools/extension. warning @react-native-community/eslint-config > babel-eslint@10.1.0: babel-eslint is now @babel/eslint-parser. This package will no longer receive updates. warning code-push-cli > code-push > superagent@3.8.3: Please upgrade to v7.0.2+ of superagent. We have fixed numerous issues with streams, form-data, attach(), filesystem errors not bubbling up (ENOENT on attach()), and all tests are now passing. See the releases tab for more information at <https://github.com/visionmedia/superagent/releases>. warning code-push-cli > code-push > superagent > formidable@1.2.6: Please upgrade to latest, formidable@v2 or formidable@v3! Check these notes: https://bit.ly/2ZEqIau warning code-push-cli > code-push > superagent-proxy > proxy-agent > socks-proxy-agent > socks@1.1.10: If using 2.x branch, please upgrade to at least 2.1.6 to avoid a serious bug with socket data flow and an import issue introduced in 2.1.0 warning code-push-cli > update-notifier > configstore > uuid@2.0.3: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. warning code-push-cli > plist > xmldom@0.1.31: Deprecated due to CVE-2021-21366 resolved in 0.5.0 warning detox > tempfile > uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. error Received malformed response from registry for "fastlane". The registry may be down. info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

 When you run `yarn upgrade` the registry endpoints changed, and you need to delete `yarn.lock`. It means an installation from scratch. So, without any cached registry and using the updated registry, this error it's happening 

Environment

`

🚫 fastlane environment 🚫

Stack

Key Value
OS 12.3.1
Ruby 2.6.8
Bundler? false
Git git version 2.32.1 (Apple Git-133)
Installation Source /usr/local/bin/fastlane
Host macOS 12.3.1 (21E258)
Ruby Lib Dir /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib
OpenSSL Version LibreSSL 2.8.3
Is contained false
Is homebrew false
Is installed via Fabric.app false
Xcode Path /Applications/Xcode.app/Contents/Developer/
Xcode Version 13.4
Swift Version 5.6.1

System Locale

Variable Value
LANG es_ES.UTF-8
LC_ALL
LANGUAGE

fastlane files:

`./fastlane/Fastfile`
# frozen_string_literal: true

fastlane_version '2.166.0'

platform :ios do
  before_all do
    setup_circle_ci
  end

  desc 'App store connect'
  private_lane :connect_app_store do
    app_store_connect_api_key(
      key_id: "563RH48T8D",
      issuer_id: "ffbbf261-39fe-4d6e-b02d-011ee0af7cc3",
      key_content: ENV['APP_STORE_API_KEY'],
      is_key_content_base64: true,
    )
  end

  desc 'Increment iOs app version number.'
  lane :bump_version do |options|
    stage = options[:stage]
    bumpType = options[:versionChange] || 'patch'
    increment_version_number_in_xcodeproj(
      bump_type: bumpType,
      xcodeproj: './ios/taxdown.xcodeproj',
      scheme: "taxdown_#{stage}"
    )
  end

  desc 'Increment iOs app build number.'
  lane :bump_version_code do
    increment_build_number(xcodeproj: './ios/taxdown.xcodeproj')
  end

  desc 'Build for different stages'
  private_lane :build_internal do |options|
    connect_app_store()
    bundle_identifier = options[:package_name]
    configuration = options[:configuration]
    build_type = options[:build_type]
    match_type = options[:match_type]
    stage = options[:stage]
    match(
      app_identifier: bundle_identifier,
      username: ENV['FASTLANE_USER'],
      type: match_type,
      readonly: false
    )
    gym(
      clean: true,
      configuration: configuration,
      export_method: build_type,
      build_path: './ios/build/intermediates',
      output_directory: './ios/build/output',
      output_name: 'taxdown.ipa',
      scheme: "taxdown_#{stage}",
      workspace: './ios/taxdown.xcworkspace'
    )
  end

  desc 'Build the iOS application.'
  lane :build do |options|
    cocoapods(podfile: './ios/Podfile')
    stage = options[:stage];
    if stage == 'prod'
      build_internal(stage: stage, configuration: 'Release-prod', match_type: 'appstore', build_type: 'app-store', package_name: options[:package_name])
    else
      build_internal(stage: stage, configuration: "Release-#{stage}", match_type: 'development', build_type: 'development', package_name: options[:package_name])
    end
  end

  desc 'Ship to Apple store Testflight'
  private_lane :app_store do |options|
    connect_app_store()
    bundle_identifier = options[:package_name]
    upload_to_testflight(
      ipa: './ios/build/output/taxdown.ipa',
      username: ENV['FASTLANE_USER'],
      app_identifier: bundle_identifier,
      itc_provider: '3DP7B6BU53'
    )
  end

  desc 'Firebase app distribution on development'
  private_lane :firebase do |options|
    firebase_app_distribution(
      ipa_path: './ios/build/output/taxdown.ipa',
      app: options[:app_id],
      groups: 'ios',
      firebase_cli_path: '/usr/local/bin/firebase',
      firebase_cli_token: ENV['FIREBASE_TOKEN'],
      release_notes: "Environment -> #{options[:stage]}"
    )
  end

  desc 'TaxDown iOs app full build distribution'
  lane :distribution do |options|
    if options[:stage] == 'prod'
      app_store(options)
    else
      firebase(options)
    end
  end

  desc 'TaxDown iOs app codepush distribution'
  lane :codepush do |options|
    sh("npx code-push login --accessKey #{ENV['CODE_PUSH_ACCESS_KEY']} || true")
    version = get_version_number(xcodeproj: './ios/taxdown.xcodeproj')
    versionBuild = get_build_number(xcodeproj: './ios/taxdown.xcodeproj')
    sh("cp ../ios/main.jsbundle ../ios/build/bundle/");
    sh("npx code-push release TaxDown/TaxDown-iOs ../ios/build/bundle/ #{version} --deploymentName #{options[:deployment_name]} --mandatory")
    sh("cd ../ && export SENTRY_PROPERTIES=./sentry/sentry.properties && ./node_modules/@sentry/cli/bin/sentry-cli --auth-token #{ENV['SENTRY_AUTH_TOKEN']} react-native codepush TaxDown/TaxDown-iOs ios ./ios/build/bundle --deployment #{options[:deployment_name]} --bundle-id #{options[:package_name]} --org taxdown --project taxdown-mobile")
  end

  desc 'Upload Sentry sourcemap'
  lane :upload_sourcemap do
    versionNumber = get_version_number(xcodeproj: './ios/taxdown.xcodeproj')
    versionBuild = get_build_number(xcodeproj: './ios/taxdown.xcodeproj')
    sh("export SENTRY_PROPERTIES=../sentry/sentry.properties && ../node_modules/@sentry/cli/bin/sentry-cli --auth-token #{ENV['SENTRY_AUTH_TOKEN']} releases files #{options[:package_name]}-#{versionNumber} upload-sourcemaps --dist #{versionBuild} --rewrite ../ios/build/bundle/main.jsbundle.map --strip-prefix ../ios")
  end

  desc 'Runs all the tests'
  lane :test do |options|
    scan(
      workspace: 'ios/taxdown.xcworkspace',
      device: 'iPhone X',
      app_identifier: options[:package_name],
      clean: true,
      configuration: 'Release',
      scheme: "taxdown_#{options[:stage]}",
      reinstall_app: true,
      force_quit_simulator: true
    )
  end

end

platform :android do
  desc 'Increment Android version name.'
  lane :bump_version do |options|
    versionChange = options[:versionChange]
    gradleTask = versionChange == 'major' ? 'increaseMajorVersionName' : versionChange == 'minor' ? 'increaseMinorVersionName' : 'increasePatchVersionName'
    gradle(
      tasks: gradleTask,
      project_dir: 'android/',
      flags: '--stacktrace --no-daemon'
    )
  end

  desc 'Increment Android version code.'
  lane :bump_version_code do
    gradle(
      tasks: 'increaseVersionCode',
      project_dir: 'android/',
      flags: '--stacktrace --no-daemon'
    )
  end

  desc 'Build the Android application.'
  lane :build do |options|
    ENV['ENVFILE'] = ".env.#{options[:stage]}"
    task = options[:stage] == 'prod' ? 'bundle' : 'assemble';
    gradle(
      task: task,
      flavor: options[:stage],
      build_type: "Release",
      project_dir: 'android/',
      flags: '--stacktrace --no-daemon'
    )
  end

  desc 'Deploy a new version to Google Play'
  private_lane :play_store do |options|
    upload_to_play_store(
      json_key: '.github/android/taxdown-android-service-key.json',
      aab: './android/app/build/outputs/bundle/prodRelease/app-prod-release.aab',
      package_name: options[:package_name],
      track: 'beta',
      release_status: 'draft'
    )
  end

  desc 'Firebase app distribution on development'
  private_lane :firebase do |options|
    firebase_app_distribution(
      apk_path: "./android/app/build/outputs/apk/#{options[:stage]}/release/app-#{options[:stage]}-release.apk",
      app: options[:app_id],
      groups: 'android',
      firebase_cli_path: '/usr/local/bin/firebase',
      firebase_cli_token: ENV['FIREBASE_TOKEN'],
      release_notes: "Environment -> #{options[:stage]}"
    )
  end

  desc 'TaxDown Android app distribution'
  lane :distribution do |options|
    if options[:stage] == 'prod'
      play_store(options)
    else
      firebase(options)
    end
  end

  desc 'TaxDown Android codepush distribution'
  lane :codepush do |options|
    sh("npx code-push login --accessKey #{ENV['CODE_PUSH_ACCESS_KEY']} || true")
    version = gradleProperty(property: 'VERSION_NAME')
    unless version != ''
      raise 'Fastlane codepush lane, could not read VERSION_NAME from gradle.properties'
    end
    sh("cp ../android/index.android.bundle ../android/app/build/bundle/");
    sh("npx code-push release TaxDown/TaxDown-android ../android/app/build/bundle/ #{version} --deploymentName #{options[:deployment_name]} --mandatory")
    sh("cd ../ && export SENTRY_PROPERTIES=./sentry/sentry.properties && ./node_modules/@sentry/cli/bin/sentry-cli --auth-token #{ENV['SENTRY_AUTH_TOKEN']} react-native codepush TaxDown/TaxDown-android android ./android/app/build/bundle --deployment #{options[:deployment_name]} --bundle-id #{options[:package_name]} --org taxdown --project taxdown-mobile")
  end

  desc 'Upload Sentry sourcemap'
  lane :upload_sourcemap do |options|
    versionNumber = gradleProperty(property: 'VERSION_NAME')
    versionBuild = gradleProperty(property: 'VERSION_CODE')
    sh("export SENTRY_PROPERTIES=../sentry/sentry.properties && ../node_modules/@sentry/cli/bin/sentry-cli --auth-token #{ENV['SENTRY_AUTH_TOKEN']} releases files #{options[:package_name]}-#{versionNumber} upload-sourcemaps --dist #{versionBuild} --rewrite ../android/app/build/bundle/index.android.bundle.map --strip-prefix ../android")
  end

  desc 'Lane to read file'
  private_lane :gradleProperty do |options|
    version = ''
    toFind = options[:property] + '='
    File.read('../android/gradle.properties').each_line do |line|
      if line.include? toFind
        version = line.sub(toFind, '').strip
      end
    end
    version;
  end

  desc 'Runs all the tests'
  lane :test do
    gradle(task: 'test', project_dir: 'android/')
  end
  
end

No Appfile found

fastlane gems

Gem Version Update-Status
fastlane 2.199.0 🚫 Update available

Loaded fastlane plugins:

Plugin Version Update-Status
fastlane-plugin-firebase_app_distribution 0.3.2 🚫 Update available
fastlane-plugin-versioning 0.5.0 Up-To-Date
Loaded gems
Gem Version
did_you_mean 1.3.0
rouge 2.0.7
xcpretty 0.3.0
terminal-notifier 2.0.0
terminal-table 1.8.0
plist 3.6.0
public_suffix 4.0.6
addressable 2.8.0
multipart-post 2.0.0
word_wrap 1.0.0
optparse 0.1.1
tty-screen 0.8.1
tty-cursor 0.7.1
tty-spinner 0.9.3
artifactory 3.0.15
babosa 1.0.4
colored 1.2
highline 2.0.3
commander 4.6.0
faraday-cookie_jar 0.0.7
gh_inspector 1.1.3
mini_magick 4.11.0
naturally 2.2.1
security 0.1.3
xcpretty-travis-formatter 1.0.1
dotenv 2.7.6
simctl 1.6.8
retriable 3.1.2
memoist 0.16.2
multi_json 1.15.0
signet 0.16.0
googleauth 1.1.0
httpclient 2.8.3
google-apis-core 0.4.1
google-apis-playcustomapp_v1 0.6.0
google-apis-androidpublisher_v3 0.14.0
google-cloud-core 1.6.0
google-cloud-storage 1.35.0
rexml 3.2.5
nanaimo 0.3.0
colored2 3.1.2
claide 1.0.3
CFPropertyList 3.0.5
atomos 0.1.3
xcodeproj 1.21.0
unicode-display_width 1.8.0
excon 0.89.0
ruby2_keywords 0.0.5
faraday-rack 1.0.0
faraday-patron 1.0.0
faraday-net_http_persistent 1.2.0
faraday-net_http 1.0.1
faraday-httpclient 1.0.1
faraday-excon 1.1.0
faraday-em_synchrony 1.0.0
faraday-em_http 1.0.0
faraday 1.8.0
unf_ext 0.0.8
unf 0.1.4
domain_name 0.5.20190701
http-cookie 1.0.4
faraday_middleware 1.2.0
fastimage 2.2.6
json 2.6.1
rubyzip 2.3.2
bundler 2.2.33
jwt 2.3.0
trailblazer-option 0.1.2
declarative 0.0.20
uber 0.1.0
representable 3.1.1
mini_mime 1.1.2
os 1.1.4
webrick 1.7.0
google-cloud-env 1.5.0
google-cloud-errors 1.2.0
google-apis-iamcredentials_v1 0.9.0
google-apis-storage_v1 0.10.0
rake 13.0.6
digest-crc 0.6.4
emoji_regex 3.2.3
aws-eventstream 1.2.0
aws-sigv4 1.4.0
aws-partitions 1.541.0
jmespath 1.4.0
aws-sdk-core 3.124.0
aws-sdk-kms 1.52.0
aws-sdk-s3 1.109.0
forwardable 1.2.0
logger 1.3.0
date 2.0.0
stringio 0.0.2
ipaddr 1.2.2
openssl 2.1.2
zlib 1.0.0
mutex_m 0.1.0
ostruct 0.1.0
strscan 1.0.0
io-console 0.4.7
fileutils 1.1.0
etc 1.0.1
libxml-ruby 3.2.1
psych 3.1.0
fastlane-plugin-firebase_app_distribution 0.3.2
fastlane-plugin-versioning 0.5.0

generated on: 2022-05-19

`
 In my opinion the environment in this case it has nothing to do 

It seems like you have not included the output of fastlane env
To make it easier for us help you resolve this issue, please update the issue to include the output of fastlane env 👍

It seems like you have not included the output of fastlane env To make it easier for us help you resolve this issue, please update the issue to include the output of fastlane env 👍

Yesterday I added all the output of fastlane env

Your registry in npm is corrupted, when Yarn request a GET to https://registry.yarnpkg.com/fastlane and the json of the response, is malformed:

If I do a curl to your npm registry:
image

And this is the json response:

{
	"_id": "fastlane",
	"name": "fastlane",
	"time": {
		"modified": "2022-04-30T06:10:15.810Z",
		"created": "2015-11-15T13:07:08.577Z",
		"0.1.0": "2015-11-15T13:07:08.577Z",
		"unpublished": {
			"time": "2022-04-30T06:10:15.810Z",
			"versions": ["0.1.0"]
		}
	}
}

The unpublished key is not correct. FYI using npm instead of Yarn returns also the error.

Thanks for the update and quick reply. I'll be sure to keep an eye on this thread. Looking for the same issue. Bumped into your thread. Thanks for creating it. Looking forward for solution.

www.mymilestonecard.com

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.

Please make sure to update to the latest fastlane version and check if that solves the issue. Let us know if that works for you by adding a comment 👍

Friendly reminder: contributions are always welcome! Check out CONTRIBUTING.md for more information on how to help with fastlane and feel free to tackle this issue yourself 💪

This issue will be auto-closed if there is no reply within 1 month.

ezoic increase your site revenue