Skip to content

Conversation

@graycreate
Copy link
Member

Fix bundletool download failure by using curl instead of wget

- Replace wget with curl which has better error handling
- Add verification step to ensure bundletool was downloaded
- Use -L flag to follow redirects properly

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings September 9, 2025 13:48
@graycreate graycreate merged commit dc28037 into main Sep 9, 2025
@graycreate graycreate deleted the bugfix/bundletool-download-fix branch September 9, 2025 13:48
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Replace wget with curl for downloading bundletool in the GitHub Actions release workflow to fix download failures.

  • Replaced wget command with curl for bundletool download
  • Added download verification to ensure bundletool file exists before proceeding
  • Improved error handling with explicit exit on download failure

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

# Download bundletool
echo "Downloading bundletool..."
wget -q https://github.com/google/bundletool/releases/latest/download/bundletool-all.jar
curl -L -o bundletool-all.jar https://github.com/google/bundletool/releases/latest/download/bundletool-all.jar
Copy link

Copilot AI Sep 9, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider adding the --fail flag to curl to ensure it returns a non-zero exit code on HTTP errors, which would make the command fail fast on download errors instead of potentially creating an empty or error file.

Suggested change
curl -L -o bundletool-all.jar https://github.com/google/bundletool/releases/latest/download/bundletool-all.jar
curl -L --fail -o bundletool-all.jar https://github.com/google/bundletool/releases/latest/download/bundletool-all.jar

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants