Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on patch, after use shorebird release android --artifact=apk #857

Closed
JgomesAT opened this issue Jul 17, 2023 · 6 comments · Fixed by #922
Closed

Error on patch, after use shorebird release android --artifact=apk #857

JgomesAT opened this issue Jul 17, 2023 · 6 comments · Fixed by #922
Assignees
Labels
bug Something isn't working

Comments

@JgomesAT
Copy link

JgomesAT commented Jul 17, 2023

I've created a release version with this command shorebird release android --artifact=apk, and all OK

after that, I want to do a patch, but I have an error: I can't see that is try to do and appbundle and not and APK??

shorebird patch android -v            
[Process.run] /Users/jorgegomes/.shorebird/bin/cache/flutter/bin/flutter build appbundle --release
✓ Building patch (105.6s)
[HTTP] GET https://api.shorebird.dev/api/v1/apps
✓ Fetching apps (0.3s)
[Process.run] java -jar /Users/jorgegomes/.shorebird/bin/cache/artifacts/bundletool/bundletool.jar dump manifest --bundle=./build/app/outputs/bundle/release/app-release.aab --xpath /manifest/@android:versionName
[Process.run] java -jar /Users/jorgegomes/.shorebird/bin/cache/artifacts/bundletool/bundletool.jar dump manifest --bundle=./build/app/outputs/bundle/release/app-release.aab --xpath /manifest/@android:versionCode
✓ Detected release version 3.0.0+200 (0.4s)
[HTTP] GET https://api.shorebird.dev/api/v1/releases?appId=799ee1a3-d838-4032-8954-4b06364c6be8
✓ Fetching releases (0.2s)
[Process.run] git rev-parse HEAD (in /Users/jorgegomes/.shorebird/bin/cache/flutter)
✓ Fetching Flutter revision (10ms)
[HTTP] GET https://api.shorebird.dev/api/v1/releases/2060/artifacts?arch=aarch64&platform=android
⠹ Fetching release artifacts... (0.2s)[HTTP] GET https://api.shorebird.dev/api/v1/releases/2060/artifacts?arch=arm&platform=android
⠼ Fetching release artifacts... (0.3s)[HTTP] GET https://api.shorebird.dev/api/v1/releases/2060/artifacts?arch=x86_64&platform=android
✓ Fetching release artifacts (0.5s)
[HTTP] GET https://api.shorebird.dev/api/v1/releases/2060/artifacts?arch=aab&platform=android
✓ Fetching aab artifact (0.2s)
✓ Downloading release artifacts (5.7s)
Unhandled exception:
Bad state: No element
#0      ListBase.firstWhere (dart:collection/list.dart:132:5)
#1      AabDiffer._metaInfMfContent (package:shorebird_cli/src/archive_analysis/aab_differ.dart:50:12)
#2      AabDiffer.changedFiles (package:shorebird_cli/src/archive_analysis/aab_differ.dart:34:27)
#3      PatchAndroidCommand.run (package:shorebird_cli/src/commands/patch/patch_android_command.dart:240:37)
<asynchronous suspension>
#4      CommandRunner.runCommand (package:args/command_runner.dart:212:13)
<asynchronous suspension>
#5      ShorebirdCliCommandRunner.runCommand (package:shorebird_cli/src/command_runner.dart:151:18)
<asynchronous suspension>
#6      ShorebirdCliCommandRunner.run (package:shorebird_cli/src/command_runner.dart:93:14)
<asynchronous suspension>
#7      main (file:///Users/jorgegomes/.shorebird/packages/shorebird_cli/bin/shorebird.dart:19:5)
<asynchronous suspension>
@JgomesAT JgomesAT added the bug Something isn't working label Jul 17, 2023
@JgomesAT JgomesAT changed the title Erro on patch, after us shorebird release android --artifact=apk Erro on patch, after use shorebird release android --artifact=apk Jul 17, 2023
@eseidel
Copy link
Contributor

eseidel commented Jul 17, 2023

@eseidel
Copy link
Contributor

eseidel commented Jul 17, 2023

Thanks for the report!

FYI @bryanoltman

@JgomesAT
Copy link
Author

HI,

And, do you know how I can solve this? in my project don't use aab file

@felangel felangel moved this to Customers in iOS Alpha Jul 18, 2023
@eseidel
Copy link
Contributor

eseidel commented Jul 24, 2023

I don't have a solution for you yet, but we can look. Thank you for the report!

@bryanoltman bryanoltman moved this to Customers in Adoption Blockers Jul 26, 2023
@eseidel eseidel changed the title Erro on patch, after use shorebird release android --artifact=apk Error on patch, after use shorebird release android --artifact=apk Jul 26, 2023
@bryanoltman bryanoltman self-assigned this Jul 26, 2023
@bryanoltman bryanoltman moved this from Customers to In Progress in Adoption Blockers Jul 26, 2023
@github-project-automation github-project-automation bot moved this from In Progress to Done in Adoption Blockers Jul 26, 2023
@JgomesAT
Copy link
Author

The problem is not solved in version 0.11 and ticket is closed

Fetching release artifacts... (0.3s)[HTTP] GET https://api.shorebird.dev/api/v1/apps/b6a80ead-ae84-4729-87d3-b3d30300b869/releases/2802/artifacts?arch=x86_64&platform=android
✓ Fetching release artifacts (0.5s)
[HTTP] GET https://api.shorebird.dev/api/v1/apps/b6a80ead-ae84-4729-87d3-b3d30300b869/releases/2802/artifacts?arch=aab&platform=android
✓ Fetching aab artifact (0.2s)
✓ Downloading release artifacts (5.5s)
Unhandled exception:
Bad state: No element
#0 ListBase.firstWhere (dart:collection/list.dart:132:5)
#1 AabDiffer._metaInfMfContent (package:shorebird_cli/src/archive_analysis/aab_differ.dart:50:12)
#2 AabDiffer.changedFiles (package:shorebird_cli/src/archive_analysis/aab_differ.dart:34:27)
#3 PatchAndroidCommand.run (package:shorebird_cli/src/commands/patch/patch_android_command.dart:245:37)

#4 CommandRunner.runCommand (package:args/command_runner.dart:212:13)

#5 ShorebirdCliCommandRunner.runCommand (package:shorebird_cli/src/command_runner.dart:151:18)

#6 ShorebirdCliCommandRunner.run (package:shorebird_cli/src/command_runner.dart:93:14)

#7 main (file:///Users/jorgegomes/.shorebird/packages/shorebird_cli/bin/shorebird.dart:22:5)

@felangel
Copy link
Contributor

This should be fixed on main by #922 and will be available in the next stable release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
No open projects
Status: Done
Status: Customers
Development

Successfully merging a pull request may close this issue.

4 participants