shorebirdtech / setup-shorebird

A GitHub Action to install and setup Shorebird
https://docs.shorebird.dev/ci/github
MIT License
18 stars 3 forks source link

Could not find a subcommand named "use" #16

Closed Fudal closed 7 months ago

Fudal commented 7 months ago

I have problem with build (before today I didn't have that problem).

Workflow code:

- name: 🐦 Setup Shorebird
      uses: shorebirdtech/setup-shorebird@v0
      with:
        flutter-version: ${{ env.FLUTTER_VERSION }}

And result:

Run shorebirdtech/setup-shorebird@v0
Run curl --proto '=https' --tlsv1.2 https://raw.githubusercontent.com/shorebirdtech/install/main/install.sh -sSf | bash -s -- --force
Cloning Shorebird into /home/runner/.config/shorebird
Cloning into '/home/runner/.config/shorebird'...
Updating Flutter...
Cloning into '/home/runner/.config/shorebird/bin/cache/flutter/0addba5b750987523c04ebe69e9755509369615a'...
HEAD is now at 0addba5b chore: bump engine to f0d3a823d463237df37669e2990bbd429759bc8b to include crash fix
Shorebird Engine • revision f0d3a823d463237df37669e2990bbd429759bc8b
Downloading Linux x64 Dart SDK from Flutter engine f0d3a823d463237df37669e2990bbd429759bc8b...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
 83  213M   83  177M    0     0   145M      0  0:00:01  0:00:01 --:--:--  177M
100  213M  100  213M    0     0   153M      0  0:00:01  0:00:01 --:--:--  [18](https://github.com/RepositoryName/app_name/actions/runs/8388318584/job/22972244208#step:10:19)1M
Building flutter tool...
Resolving dependencies...
+ _fe_analyzer_shared 65.0.0 (67.0.0 available)
+ analyzer 6.3.0 (6.4.1 available)
+ archive 3.3.2 (3.4.10 available)
+ args 2.4.2
+ async 2.11.0
+ boolean_selector 2.1.1
+ browser_launcher 1.1.1
+ built_collection 5.1.1
+ built_value 8.8.1 (8.9.1 available)
+ checked_yaml 2.0.3
+ cli_config 0.1.2 (0.2.0 available)
+ clock 1.1.1
+ collection 1.18.0
+ completion 1.0.1
+ convert 3.1.1
+ coverage 1.7.2
+ crypto 3.0.3
+ csslib 1.0.0
+ dap 1.1.0 (1.2.0 available)
+ dds 3.1.0+1 (3.4.0 available)
+ dds_service_extensions 1.6.2 (1.7.0 available)
+ devtools_shared 6.0.3 (8.1.0 available)
+ dwds 23.0.0+1 (23.3.0 available)
+ extension_discovery 2.0.0
+ fake_async 1.3.1
+ file 7.0.0
+ file_testing 3.0.0
+ fixnum 1.1.0
+ flutter_template_images 4.2.0 (4.2.1 available)
+ frontend_server_client 3.2.0
+ glob 2.1.2
+ graphs 2.3.1
+ html 0.15.4
+ http 0.13.6 (1.2.1 available)
+ http_multi_server 3.2.1
+ http_parser 4.0.2
+ intl 0.18.1 (0.19.0 available)
+ io 1.0.4
+ js 0.6.7 (0.7.1 available)
+ json_annotation 4.8.1
+ json_rpc_2 3.0.2
+ logging 1.2.0
+ matcher 0.12.16+1
+ meta 1.11.0 (1.12.0 available)
+ mime 1.0.4 (1.0.5 available)
+ multicast_dns 0.3.2+6
+ mustache_template 2.0.0
+ native_assets_builder 0.3.0 (0.5.0 available)
+ native_assets_cli 0.3.2 (0.4.2 available)
+ native_stack_traces 0.5.6
+ node_preamble 2.0.2
+ package_config 2.1.0
+ path 1.9.0
+ petitparser 6.0.2
+ platform 3.1.4
+ pool 1.5.1
+ process 5.0.2
+ pub_semver 2.1.4
+ pubspec_parse 1.2.3
+ shelf 1.4.1
+ shelf_packages_handler 3.0.2
+ shelf_proxy 1.0.4
+ shelf_static 1.1.2
+ shelf_web_socket 1.0.4
+ source_map_stack_trace 2.1.1
+ source_maps 0.10.12
+ source_span 1.10.0
+ sse 4.1.4 (4.1.5 available)
+ stack_trace 1.11.1
+ standard_message_codec 0.0.1+4
+ stream_channel 2.1.2
+ string_scanner 1.2.0
+ sync_http 0.3.1
+ term_glyph 1.2.1
+ test 1.24.9 (1.25.2 available)
+ test_api 0.6.1 (0.7.0 available)
+ test_core 0.5.9 (0.6.0 available)
+ typed_data 1.3.2
+ unified_analytics 5.8.0+1 (5.8.8 available)
+ usage 4.1.1
+ uuid 3.0.7 (4.3.3 available)
+ vm_service 13.0.0 (14.2.0 available)
+ vm_service_interface 1.0.0 (1.1.0 available)
+ vm_snapshot_analysis 0.7.6
+ watcher 1.1.0
+ web 0.4.0 (0.5.1 available)
+ web_socket_channel 2.4.1 (2.4.4 available)
+ webdriver 3.0.3
+ webkit_inspection_protocol 1.2.1
+ xml 6.5.0
+ yaml 3.1.2
+ yaml_edit 2.1.1 (2.2.0 available)
Changed 92 dependencies!
29 packages have newer versions incompatible with dependency constraints.
Try `dart pub outdated` for more information.
Flutter 3.19.4-0.0.pre.3 • channel [user-branch] • unknown source
Framework • revision 0addba5b75 (3 days ago) • 2024-03-19 10:49:16 -0700
Engine • revision f0d3a823d4
Tools • Dart 3.3.1 • DevTools 2.31.1
Building Shorebird...
Resolving dependencies...
  google_identity_services_web 0.2.2 (0.3.1+1 available)
  js 0.6.7 (0.7.1 available)
> vm_service 14.2.0 (was 14.1.0)
Changed 1 dependency!
2 packages have newer versions incompatible with dependency constraints.
Try `dart pub outdated` for more information.
Shorebird 0.27.0 • git@github.com:shorebirdtech/shorebird.git
Flutter 3.19.3 • revision 0addba5b750987523c04ebe69e9755509369615a
Engine • revision f0d3a823d463237df37669e2990bbd[42](https://github.com/RepositoryName/app_name/actions/runs/8388318584/job/22972244208#step:10:44)97[59](https://github.com/RepositoryName/app_name/actions/runs/8388318584/job/22972244208#step:10:61)bc8b
Adding Shorebird to your PATH
Updating /home/runner/.bashrc

🐦 Shorebird has been installed!

Close and reopen your terminal to start using Shorebird or run the following command to start using it now:

  export PATH="/home/runner/.config/shorebird/bin:$PATH"

To get started, run the following command:

  shorebird --help

For more information, visit:
https://docs.shorebird.dev/

added /home/runner/.config/shorebird/bin to GITHUB_PATH
Run shorebird flutter versions use 3.19.3
Could not find a subcommand named "use" for "shorebird flutter versions".

Usage: shorebird flutter versions <subcommand> [arguments]
-h, --help    Print this usage information.

Available subcommands:
  list   List available Flutter versions.
eseidel commented 7 months ago

Apologies for the disruption. @bryanoltman is in the process of releasing a fix now.

eseidel commented 7 months ago

It's possible to work around this error for now using an args instead of with: flutter-version:

uses: shorebirdtech/shorebird-release@v0
    id: shorebird-release
    with:
      args: '--flutter-version=3.16.3'
      platform: android
      working-directory: ./path/to/app
eseidel commented 7 months ago

The new setup_shorebird is released.

Fudal commented 7 months ago

@eseidel okay, thank you. Can you tell me how should I declare my shorebird setup workflow? Instead of precious version.

bryanoltman commented 7 months ago

You should be able to use the yml provided in the readme:

steps:
  - uses: shorebirdtech/setup-shorebird@v1
  - run: shorebird --version