fix(install): auto-install missing unzip/curl via host package manager#102
Merged
Conversation
The install script bailed on fresh Ubuntu/Debian boxes with 'Missing required dependencies: unzip' — verified by running 'curl ... install.sh | sh' inside a stock ubuntu:24.04 container. Now check_deps() probes for apt-get / dnf / yum / apk / pacman and attempts an unattended install of the missing package (with sudo if not root). Falls back to the original explicit-install error message if no recognized package manager is found or sudo is unavailable — so we never silently fail, and the error includes the right command for each distro family. Tested end-to-end in a fresh ubuntu:24.04 arm64 container: before fix: ERROR Missing required dependencies: unzip after fix : INFO Installing unzip via apt-get... → bubbaloop 0.0.14 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
edgarriba
added a commit
that referenced
this pull request
May 19, 2026
Patch release: install script auto-installs missing unzip/curl on fresh Ubuntu/Debian/Fedora/Alpine/Arch boxes, instead of bailing out. Verified against a stock ubuntu:24.04 arm64 container (#102). Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bug
Running the v0.0.14 install one-liner on a stock Ubuntu 24.04 (or any minimal Debian-based image) bails out immediately:
unzipisn't installed by default on minimal Ubuntu/Debian images, so every fresh-box install hits this on first attempt.Reproduction
Fix
check_deps()now probes for the host's package manager (apt-get,dnf,yum,apk,pacman) and runs an unattended install of the missing packages, usingsudowhen not running as root. Falls back to the original explicit-install error (now with per-distro install commands) if no PM is detected orsudois unavailable.End-to-end test on fresh Ubuntu 24.04
Before fix:
After fix:
The two other warnings in container testing (
No dashboard release found, skipping bubbaloop-dashandsystemctl: command not found) are container-only artifacts — the first is benign (dashboard is published separately viarelease-dash.yml) and the second only fires inside containers without an init system. Both are out of scope for this PR.🤖 Generated with Claude Code