fastlane-plugin-flutter_version
fastlane-plugin-flutter_version copied to clipboard
[BUG] "Read pubspec.yaml failed" on a YAML file that contains aliases on Ruby 3+
Describe the bug "Read pubspec.yaml failed" on a YAML file that contains aliases on Linux (Fedora 38, tried using both bash and zsh). The same project works fine on macOS Ventura.
In the case of the yaml file below, the relevant alias is isar_version
.
To Reproduce Steps to reproduce the behavior:
- Use the pubspec.yaml file attached below
- Use flutter_version in
android/fastlane/Fastfile
- Run the fastlane lane
- See error
Expected behavior The YAML file should be parsed successfully.
Desktop (please complete the following information):
- OS: Fedora 38
- Shell: zsh
- flutter_version version: 1.1.15
Additional context YAML file:
name: app
description: App client app
publish_to: "none"
version: 1.1.2+33
environment:
sdk: ">=3.0.0 <4.0.0"
isar_version: &isar_version 3.1.0+1
dependencies:
another_flushbar: ^1.12.30
asn1lib: ^1.4.1
auto_route: ^7.4.0
auto_size_text: ^3.0.0
background_locator_2: ^2.0.6
clock: ^1.1.1
collection: ^1.17.1
convenient_test: ^1.2.1
cupertino_icons: ^1.0.5
dartz: ^0.10.1
dio: ^5.2.1+1
dio_http2_adapter: ^2.3.0
dio_smart_retry: ^5.0.0
easy_localization: ^3.0.2
fast_rsa: ^3.5.7
flutter:
sdk: flutter
flutter_blurhash: ^0.7.0
flutter_carousel_widget: ^2.0.4
flutter_dialogs: ^3.0.0
flutter_dotenv: ^5.1.0
flutter_hooks: ^0.20.0
flutter_image_compress: ^2.0.3
flutter_map: ^5.0.0
flutter_map_animations: ^0.4.0
flutter_map_location_marker: ^7.0.0
# TODO: Use version once plugin is updated to support Flutter Map v5 ( https://github.com/lpongetti/flutter_map_marker_cluster )
flutter_map_marker_cluster:
git:
url: https://github.com/andreystavitsky/flutter_map_marker_cluster.git
ref: master
flutter_map_tile_caching: ^9.0.0-dev.3
flutter_secure_storage: ^8.0.0
flutter_svg: ^2.0.7
freezed_annotation: ^2.2.0
geolocator: ^9.0.2
hooks_riverpod: ^2.3.6
http_parser: ^4.0.2
image_picker: ^1.0.0
infinite_scroll_pagination: ^3.2.0
isar: *isar_version
isar_flutter_libs: *isar_version
json_annotation: ^4.8.1
jwt_decoder: ^2.0.1
latlong2: ^0.9.0
logger: ^2.0.1
onesignal_flutter: ^3.5.0
open_mail_app: ^0.4.5
package_info_plus: ^4.0.2
path_provider: ^2.0.15
permission_handler: ^10.3.0
pointycastle: ^3.7.3
pretty_dio_logger: ^1.3.1
restart_app: ^1.2.1
retrofit: ^4.0.1
riverpod_annotation: ^2.1.1
sentry_dio: ^7.8.0
sentry_flutter: ^7.8.0
shared_preferences: ^2.1.2
shimmer: ^3.0.0
sliver_tools: ^0.2.10
socket_io_client: ^2.0.2
stack_trace: ^1.11.0
timeago: ^3.3.0
transparent_pointer: ^1.0.0
tuple: ^2.0.2
url_launcher: ^6.1.11
visibility_detector: ^0.4.0+2
web_socket_channel: ^2.4.0
dev_dependencies:
auto_route_generator: ^7.1.1
build_runner: ^2.4.4
convenient_test_dev: ^1.3.0
custom_lint: ^0.4.0
darq: ^2.0.0
flutter_flavorizr: ^2.2.1
flutter_launcher_icons: ^0.13.1
flutter_native_splash: ^2.3.1
flutter_test:
sdk: flutter
freezed: ^2.3.4
integration_test:
sdk: flutter
isar_generator: *isar_version
json_serializable: ^6.7.0
mockito: ^5.4.1
retrofit_generator: ^7.0.2
riverpod_generator: ^2.2.3
riverpod_lint: ^1.4.0
sentry_dart_plugin: ^1.0.0
surf_lint_rules: ^3.0.0
Error log:
/home/alex/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/fastlane-plugin-flutter_version-1.1.15/lib/fastlane/plugin/flutter_version/actions/flutter_version_action.rb:18:in `rescue in run': \e[31m[!] Read pubspec.yaml failed\e[0m (RuntimeError)
from /home/alex/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/fastlane-plugin-flutter_version-1.1.15/lib/fastlane/plugin/flutter_version/actions/flutter_version_action.rb:14:in `run'
from /home/alex/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/fastlane-2.214.0/fastlane/lib/fastlane/runner.rb:263:in `block (2 levels) in execute_action'
from /home/alex/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/fastlane-2.214.0/fastlane/lib/fastlane/actions/actions_helper.rb:69:in `execute_action'
from /home/alex/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/fastlane-2.214.0/fastlane/lib/fastlane/runner.rb:255:in `block in execute_action'
from /home/alex/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/fastlane-2.214.0/fastlane/lib/fastlane/runner.rb:229:in `chdir'
from /home/alex/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/fastlane-2.214.0/fastlane/lib/fastlane/runner.rb:229:in `execute_action'
from /home/alex/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/fastlane-2.214.0/fastlane/lib/fastlane/runner.rb:157:in `trigger_action_by_name'
from /home/alex/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/fastlane-2.214.0/fastlane/lib/fastlane/fast_file.rb:159:in `method_missing'
from Fastfile:49:in `block (2 levels) in parsing_binding'
from /home/alex/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/fastlane-2.214.0/fastlane/lib/fastlane/lane.rb:33:in `call'
from /home/alex/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/fastlane-2.214.0/fastlane/lib/fastlane/runner.rb:49:in `block in execute'
from /home/alex/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/fastlane-2.214.0/fastlane/lib/fastlane/runner.rb:45:in `chdir'
from /home/alex/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/fastlane-2.214.0/fastlane/lib/fastlane/runner.rb:45:in `execute'
from /home/alex/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/fastlane-2.214.0/fastlane/lib/fastlane/lane_manager.rb:47:in `cruise_lane'
from /home/alex/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/fastlane-2.214.0/fastlane/lib/fastlane/command_line_handler.rb:36:in `handle'
from /home/alex/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/fastlane-2.214.0/fastlane/lib/fastlane/commands_generator.rb:110:in `block (2 levels) in run'
from /home/alex/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/commander-4.6.0/lib/commander/command.rb:187:in `call'
from /home/alex/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/commander-4.6.0/lib/commander/command.rb:157:in `run'
from /home/alex/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/commander-4.6.0/lib/commander/runner.rb:444:in `run_active_command'
from /home/alex/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/fastlane-2.214.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:124:in `run!'
from /home/alex/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/commander-4.6.0/lib/commander/delegates.rb:18:in `run!'
from /home/alex/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/fastlane-2.214.0/fastlane/lib/fastlane/commands_generator.rb:354:in `run'
from /home/alex/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/fastlane-2.214.0/fastlane/lib/fastlane/commands_generator.rb:43:in `start'
from /home/alex/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/fastlane-2.214.0/fastlane/lib/fastlane/cli_tools_distributor.rb:123:in `take_off'
from /home/alex/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/fastlane-2.214.0/bin/fastlane:23:in `<top (required)>'
from /home/alex/.rbenv/versions/3.1.2/bin/fastlane:25:in `load'
from /home/alex/.rbenv/versions/3.1.2/bin/fastlane:25:in `<top (required)>'
from /home/alex/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.4.10/lib/bundler/cli/exec.rb:58:in `load'
from /home/alex/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.4.10/lib/bundler/cli/exec.rb:58:in `kernel_load'
from /home/alex/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.4.10/lib/bundler/cli/exec.rb:23:in `run'
from /home/alex/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.4.10/lib/bundler/cli.rb:492:in `exec'
from /home/alex/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.4.10/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
from /home/alex/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.4.10/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
from /home/alex/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.4.10/lib/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
from /home/alex/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.4.10/lib/bundler/cli.rb:34:in `dispatch'
from /home/alex/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.4.10/lib/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
from /home/alex/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.4.10/lib/bundler/cli.rb:28:in `start'
from /home/alex/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.4.10/exe/bundle:45:in `block in <top (required)>'
from /home/alex/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.4.10/lib/bundler/friendly_errors.rb:117:in `with_friendly_errors'
from /home/alex/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.4.10/exe/bundle:33:in `<top (required)>'
from /home/alex/.rbenv/versions/3.1.2/bin/bundle:25:in `load'
from /home/alex/.rbenv/versions/3.1.2/bin/bundle:25:in `<main>'
/home/alex/.rbenv/versions/3.1.2/lib/ruby/3.1.0/psych/visitors/to_ruby.rb:430:in `visit_Psych_Nodes_Alias': Unknown alias: isar_version (Psych::BadAlias)
from /home/alex/.rbenv/versions/3.1.2/lib/ruby/3.1.0/psych/visitors/visitor.rb:30:in `visit'
from /home/alex/.rbenv/versions/3.1.2/lib/ruby/3.1.0/psych/visitors/visitor.rb:6:in `accept'
from /home/alex/.rbenv/versions/3.1.2/lib/ruby/3.1.0/psych/visitors/to_ruby.rb:35:in `accept'
from /home/alex/.rbenv/versions/3.1.2/lib/ruby/3.1.0/psych/visitors/to_ruby.rb:345:in `block in revive_hash'
from /home/alex/.rbenv/versions/3.1.2/lib/ruby/3.1.0/psych/visitors/to_ruby.rb:343:in `each'
from /home/alex/.rbenv/versions/3.1.2/lib/ruby/3.1.0/psych/visitors/to_ruby.rb:343:in `each_slice'
from /home/alex/.rbenv/versions/3.1.2/lib/ruby/3.1.0/psych/visitors/to_ruby.rb:343:in `revive_hash'
from /home/alex/.rbenv/versions/3.1.2/lib/ruby/3.1.0/psych/visitors/to_ruby.rb:167:in `visit_Psych_Nodes_Mapping'
from /home/alex/.rbenv/versions/3.1.2/lib/ruby/3.1.0/psych/visitors/visitor.rb:30:in `visit'
from /home/alex/.rbenv/versions/3.1.2/lib/ruby/3.1.0/psych/visitors/visitor.rb:6:in `accept'
from /home/alex/.rbenv/versions/3.1.2/lib/ruby/3.1.0/psych/visitors/to_ruby.rb:35:in `accept'
from /home/alex/.rbenv/versions/3.1.2/lib/ruby/3.1.0/psych/visitors/to_ruby.rb:345:in `block in revive_hash'
from /home/alex/.rbenv/versions/3.1.2/lib/ruby/3.1.0/psych/visitors/to_ruby.rb:343:in `each'
from /home/alex/.rbenv/versions/3.1.2/lib/ruby/3.1.0/psych/visitors/to_ruby.rb:343:in `each_slice'
from /home/alex/.rbenv/versions/3.1.2/lib/ruby/3.1.0/psych/visitors/to_ruby.rb:343:in `revive_hash'
from /home/alex/.rbenv/versions/3.1.2/lib/ruby/3.1.0/psych/visitors/to_ruby.rb:167:in `visit_Psych_Nodes_Mapping'
from /home/alex/.rbenv/versions/3.1.2/lib/ruby/3.1.0/psych/visitors/visitor.rb:30:in `visit'
from /home/alex/.rbenv/versions/3.1.2/lib/ruby/3.1.0/psych/visitors/visitor.rb:6:in `accept'
from /home/alex/.rbenv/versions/3.1.2/lib/ruby/3.1.0/psych/visitors/to_ruby.rb:35:in `accept'
from /home/alex/.rbenv/versions/3.1.2/lib/ruby/3.1.0/psych/visitors/to_ruby.rb:318:in `visit_Psych_Nodes_Document'
from /home/alex/.rbenv/versions/3.1.2/lib/ruby/3.1.0/psych/visitors/visitor.rb:30:in `visit'
from /home/alex/.rbenv/versions/3.1.2/lib/ruby/3.1.0/psych/visitors/visitor.rb:6:in `accept'
from /home/alex/.rbenv/versions/3.1.2/lib/ruby/3.1.0/psych/visitors/to_ruby.rb:35:in `accept'
from /home/alex/.rbenv/versions/3.1.2/lib/ruby/3.1.0/psych.rb:335:in `safe_load'
from /home/alex/.rbenv/versions/3.1.2/lib/ruby/3.1.0/psych.rb:370:in `load'
from /home/alex/.rbenv/versions/3.1.2/lib/ruby/3.1.0/psych.rb:671:in `block in load_file'
from /home/alex/.rbenv/versions/3.1.2/lib/ruby/3.1.0/psych.rb:670:in `open'
from /home/alex/.rbenv/versions/3.1.2/lib/ruby/3.1.0/psych.rb:670:in `load_file'
from /home/alex/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/fastlane-plugin-flutter_version-1.1.15/lib/fastlane/plugin/flutter_version/actions/flutter_version_action.rb:15:in `run'
from /home/alex/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/fastlane-2.214.0/fastlane/lib/fastlane/runner.rb:263:in `block (2 levels) in execute_action'
from /home/alex/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/fastlane-2.214.0/fastlane/lib/fastlane/actions/actions_helper.rb:69:in `execute_action'
from /home/alex/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/fastlane-2.214.0/fastlane/lib/fastlane/runner.rb:255:in `block in execute_action'
from /home/alex/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/fastlane-2.214.0/fastlane/lib/fastlane/runner.rb:229:in `chdir'
from /home/alex/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/fastlane-2.214.0/fastlane/lib/fastlane/runner.rb:229:in `execute_action'
from /home/alex/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/fastlane-2.214.0/fastlane/lib/fastlane/runner.rb:157:in `trigger_action_by_name'
from /home/alex/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/fastlane-2.214.0/fastlane/lib/fastlane/fast_file.rb:159:in `method_missing'
from Fastfile:49:in `block (2 levels) in parsing_binding'
from /home/alex/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/fastlane-2.214.0/fastlane/lib/fastlane/lane.rb:33:in `call'
from /home/alex/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/fastlane-2.214.0/fastlane/lib/fastlane/runner.rb:49:in `block in execute'
from /home/alex/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/fastlane-2.214.0/fastlane/lib/fastlane/runner.rb:45:in `chdir'
from /home/alex/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/fastlane-2.214.0/fastlane/lib/fastlane/runner.rb:45:in `execute'
from /home/alex/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/fastlane-2.214.0/fastlane/lib/fastlane/lane_manager.rb:47:in `cruise_lane'
from /home/alex/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/fastlane-2.214.0/fastlane/lib/fastlane/command_line_handler.rb:36:in `handle'
from /home/alex/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/fastlane-2.214.0/fastlane/lib/fastlane/commands_generator.rb:110:in `block (2 levels) in run'
from /home/alex/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/commander-4.6.0/lib/commander/command.rb:187:in `call'
from /home/alex/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/commander-4.6.0/lib/commander/command.rb:157:in `run'
from /home/alex/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/commander-4.6.0/lib/commander/runner.rb:444:in `run_active_command'
from /home/alex/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/fastlane-2.214.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:124:in `run!'
from /home/alex/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/commander-4.6.0/lib/commander/delegates.rb:18:in `run!'
from /home/alex/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/fastlane-2.214.0/fastlane/lib/fastlane/commands_generator.rb:354:in `run'
from /home/alex/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/fastlane-2.214.0/fastlane/lib/fastlane/commands_generator.rb:43:in `start'
from /home/alex/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/fastlane-2.214.0/fastlane/lib/fastlane/cli_tools_distributor.rb:123:in `take_off'
from /home/alex/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/fastlane-2.214.0/bin/fastlane:23:in `<top (required)>'
from /home/alex/.rbenv/versions/3.1.2/bin/fastlane:25:in `load'
from /home/alex/.rbenv/versions/3.1.2/bin/fastlane:25:in `<top (required)>'
from /home/alex/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.4.10/lib/bundler/cli/exec.rb:58:in `load'
from /home/alex/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.4.10/lib/bundler/cli/exec.rb:58:in `kernel_load'
from /home/alex/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.4.10/lib/bundler/cli/exec.rb:23:in `run'
from /home/alex/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.4.10/lib/bundler/cli.rb:492:in `exec'
from /home/alex/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.4.10/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
from /home/alex/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.4.10/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
from /home/alex/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.4.10/lib/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
from /home/alex/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.4.10/lib/bundler/cli.rb:34:in `dispatch'
from /home/alex/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.4.10/lib/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
from /home/alex/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.4.10/lib/bundler/cli.rb:28:in `start'
from /home/alex/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.4.10/exe/bundle:45:in `block in <top (required)>'
from /home/alex/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.4.10/lib/bundler/friendly_errors.rb:117:in `with_friendly_errors'
from /home/alex/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.4.10/exe/bundle:33:in `<top (required)>'
from /home/alex/.rbenv/versions/3.1.2/bin/bundle:25:in `load'
from /home/alex/.rbenv/versions/3.1.2/bin/bundle:25:in `<main>'