You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an application on Google Play store which has the same release versions on internal and alpha tracks, no other tracks are used at this point.
When I try to download release metadata with download_from_play_store() Fastlane fails with Unable to find version '1.0.0' for 'net.korri.example.fastlane' in all tracks. Please double check the version number.
This failure is happening because download_from_play_store() executes Supply::Setup.new.perform_download which calls client.release_listings(Supply.config[:version_name]), and this fails when multiple tracks contain the version but neither production nor beta are on the list:
UI.user_error!("Unable to find version '#{version}' for '#{current_package_name}' in all tracks. Please double check the version number.")
returnnil
else
UI.message("Found '#{version}' in '#{filtered_track.track}' track.")
end
This failure happens even when track has been given as a parameter to the download_from_play_store() call.
The fix would be to either obey the track parameter if it's available, and/or extend the track selection logic in client.release_listings() to include alpha and internal tracks.
Command executed
bundle exec fastlane metadatas
Complete output when running fastlane, including the stack trace and command used
$ bundle exec fastlane metadatas
/usr/local/lib/ruby/gems/3.0.0/gems/bundler-1.17.2/lib/bundler/shared_helpers.rb:29: warning: Pathname#untaint is deprecated and will be removed in Ruby 3.2.
/usr/local/lib/ruby/gems/3.0.0/gems/bundler-1.17.2/lib/bundler/shared_helpers.rb:118: warning: Pathname#untaint is deprecated and will be removed in Ruby 3.2.
/usr/local/lib/ruby/gems/3.0.0/gems/bundler-1.17.2/lib/bundler/shared_helpers.rb:118: warning: Pathname#untaint is deprecated and will be removed in Ruby 3.2.
/usr/local/lib/ruby/gems/3.0.0/gems/bundler-1.17.2/lib/bundler/shared_helpers.rb:35: warning: Pathname#untaint is deprecated and will be removed in Ruby 3.2.
/usr/local/lib/ruby/gems/3.0.0/gems/bundler-1.17.2/lib/bundler/shared_helpers.rb:35: warning: Pathname#untaint is deprecated and will be removed in Ruby 3.2.
/usr/local/lib/ruby/gems/3.0.0/gems/bundler-1.17.2/lib/bundler/shared_helpers.rb:44: warning: Pathname#untaint is deprecated and will be removed in Ruby 3.2.
/usr/local/lib/ruby/gems/3.0.0/gems/bundler-1.17.2/lib/bundler/shared_helpers.rb:118: warning: Pathname#untaint is deprecated and will be removed in Ruby 3.2.
[✔] 🚀
/usr/local/lib/ruby/gems/3.0.0/gems/bundler-1.17.2/lib/bundler/shared_helpers.rb:35: warning: Pathname#untaint is deprecated and will be removed in Ruby 3.2.
/usr/local/lib/ruby/gems/3.0.0/gems/bundler-1.17.2/lib/bundler/shared_helpers.rb:35: warning: Pathname#untaint is deprecated and will be removed in Ruby 3.2.
/usr/local/lib/ruby/gems/3.0.0/gems/bundler-1.17.2/lib/bundler/shared_helpers.rb:29: warning: Pathname#untaint is deprecated and will be removed in Ruby 3.2.
/usr/local/lib/ruby/gems/3.0.0/gems/bundler-1.17.2/lib/bundler/shared_helpers.rb:118: warning: Pathname#untaint is deprecated and will be removed in Ruby 3.2.
/usr/local/lib/ruby/gems/3.0.0/gems/bundler-1.17.2/lib/bundler/shared_helpers.rb:118: warning: Pathname#untaint is deprecated and will be removed in Ruby 3.2.
/usr/local/lib/ruby/gems/3.0.0/gems/bundler-1.17.2/lib/bundler/shared_helpers.rb:35: warning: Pathname#untaint is deprecated and will be removed in Ruby 3.2.
/usr/local/lib/ruby/gems/3.0.0/gems/bundler-1.17.2/lib/bundler/shared_helpers.rb:35: warning: Pathname#untaint is deprecated and will be removed in Ruby 3.2.
/usr/local/lib/ruby/gems/3.0.0/gems/bundler-1.17.2/lib/bundler/shared_helpers.rb:44: warning: Pathname#untaint is deprecated and will be removed in Ruby 3.2.
/usr/local/lib/ruby/gems/3.0.0/gems/bundler-1.17.2/lib/bundler/shared_helpers.rb:118: warning: Pathname#untaint is deprecated and will be removed in Ruby 3.2.
/usr/local/lib/ruby/gems/3.0.0/gems/bundler-1.17.2/lib/bundler/shared_helpers.rb:29: warning: Pathname#untaint is deprecated and will be removed in Ruby 3.2.
/usr/local/lib/ruby/gems/3.0.0/gems/bundler-1.17.2/lib/bundler/shared_helpers.rb:118: warning: Pathname#untaint is deprecated and will be removed in Ruby 3.2.
/usr/local/lib/ruby/gems/3.0.0/gems/bundler-1.17.2/lib/bundler/shared_helpers.rb:118: warning: Pathname#untaint is deprecated and will be removed in Ruby 3.2.
/usr/local/lib/ruby/gems/3.0.0/gems/bundler-1.17.2/lib/bundler/shared_helpers.rb:35: warning: Pathname#untaint is deprecated and will be removed in Ruby 3.2.
/usr/local/lib/ruby/gems/3.0.0/gems/bundler-1.17.2/lib/bundler/shared_helpers.rb:35: warning: Pathname#untaint is deprecated and will be removed in Ruby 3.2.
/usr/local/lib/ruby/gems/3.0.0/gems/bundler-1.17.2/lib/bundler/shared_helpers.rb:44: warning: Pathname#untaint is deprecated and will be removed in Ruby 3.2.
/usr/local/lib/ruby/gems/3.0.0/gems/bundler-1.17.2/lib/bundler/shared_helpers.rb:118: warning: Pathname#untaint is deprecated and will be removed in Ruby 3.2.
[13:37:22]: ----------------------------------------
[13:37:22]: --- Step: Verifying fastlane version ---
[13:37:22]: ----------------------------------------
[13:37:22]: Your fastlane version 2.204.2 matches the minimum requirement of 2.68.2 ✅
[13:37:22]: ------------------------------
[13:37:22]: --- Step: default_platform ---
[13:37:22]: ------------------------------
[13:37:22]: Driving the lane 'android metadatas' 🚀
[13:37:22]: --------------------------------------
[13:37:22]: --- Step: download_from_play_store ---
[13:37:22]: --------------------------------------
[13:37:22]: 🕗 Downloading metadata, images, screenshots...
[13:37:24]: 📝 Downloading metadata (fi-FI)
[13:37:24]: Writing to fastlane/metadata/android/fi-FI/title.txt...
[13:37:24]: Writing to fastlane/metadata/android/fi-FI/short_description.txt...
[13:37:24]: Writing to fastlane/metadata/android/fi-FI/full_description.txt...
[13:37:24]: Writing to fastlane/metadata/android/fi-FI/video.txt...
[13:37:24]: 🖼️ Downloading images (fi-FI)
[13:37:24]: Downloading `featureGraphic` for fi-FI...
[13:37:24]: Downloaded - fastlane/metadata/android/fi-FI/images/featureGraphic.png
[13:37:24]: Downloading `icon` for fi-FI...
[13:37:25]: Downloaded - fastlane/metadata/android/fi-FI/images/icon.png
[13:37:25]: Downloading `tvBanner` for fi-FI...
[13:37:25]: Downloading `phoneScreenshots` for fi-FI...
[13:37:26]: Downloaded - fastlane/metadata/android/fi-FI/images/phoneScreenshots/1_fi-FI.png
[13:37:26]: Downloaded - fastlane/metadata/android/fi-FI/images/phoneScreenshots/2_fi-FI.png
[13:37:26]: Downloading `sevenInchScreenshots` for fi-FI...
[13:37:27]: Downloading `tenInchScreenshots` for fi-FI...
[13:37:27]: Downloading `tvScreenshots` for fi-FI...
[13:37:27]: Downloading `wearScreenshots` for fi-FI...
+------------------+-------------------+
| Lane Context |
+------------------+-------------------+
| DEFAULT_PLATFORM | android |
| PLATFORM_NAME | android |
| LANE_NAME | android metadatas |
+------------------+-------------------+
[13:37:29]: Unable to find version '1.0.0' for 'net.korri.example.fastlane' in all tracks. Please double check the version number.
New Issue Checklist
Issue Description
I have an application on Google Play store which has the same release versions on internal and alpha tracks, no other tracks are used at this point.
When I try to download release metadata with download_from_play_store() Fastlane fails with
Unable to find version '1.0.0' for 'net.korri.example.fastlane' in all tracks. Please double check the version number.
This failure is happening because
download_from_play_store()
executesSupply::Setup.new.perform_download
which callsclient.release_listings(Supply.config[:version_name])
, and this fails when multiple tracks contain the version but neither production nor beta are on the list:fastlane/supply/lib/supply/client.rb
Lines 265 to 285 in f616ea6
This failure happens even when track has been given as a parameter to the download_from_play_store() call.
The fix would be to either obey the track parameter if it's available, and/or extend the track selection logic in
client.release_listings()
to include alpha and internal tracks.Command executed
bundle exec fastlane metadatas
Complete output when running fastlane, including the stack trace and command used
Environment
The text was updated successfully, but these errors were encountered: