-
Notifications
You must be signed in to change notification settings - Fork 147
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
fix: invalid or corrupt bundletool #1006
Comments
Other than some slightly strange factoring (e.g. extractArtifact not actually extracting in the base class), I don't see anything obviously wrong:
We could try hard-coding a signature and verifying that? |
If we think this might be early termination, we should just download to a temp file and then move it into place. I learned the other day that that's the only way to do an atomic write on file systems is that "rename" is atomic and so you always write to a side file and then rename into place when you want atomic writes (for downloads or otherwise). |
https://www.reddit.com/r/dartlang/comments/r15lhw/best_way_to_write_a_file_atomically/ is actually a pretty good answer it looks like. |
Our current guess is that maybe customers are interrupting the script during download and we don't recover correctly. |
One report of hitting this error again just now. |
Affected customers will need to clear their cache for the fix the take effect. |
What does this mean? |
I believe Felix was referring to |
Shorebird cache clean doesn't work, or will it report an error |
Can you share the error you're seeing? |
linxi@linxideMac-mini kx_flutter_verticalscreen % shorebird cache clean 🐦 Shorebird initialized successfully! ✅ A shorebird app has been created. Reference the following commands to get started: 📦 To create a new release use: "shorebird release". For more information about Shorebird, visit https://shorebird.dev ^C If you aren't sure why this command failed, re-run with the --verbose flag to see more information. You can also file an issue if you think this is a bug. Please include the following log file in your report: linxi@linxideMac-mini kx_flutter_verticalscreen % |
Thank you! |
When creating a release, a couple users have reported an error of the form
Failed to extract version code from app bundle: Error: Invalid or corrupt jarfile /path/to/bundletool.jar
The text was updated successfully, but these errors were encountered: