-
Notifications
You must be signed in to change notification settings - Fork 0
Improve mkcert installation support for multiple package managers #64
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
base: main
Are you sure you want to change the base?
Conversation
- Add support for Arch Linux (pacman), Ubuntu/Debian (apt), CentOS/RHEL (yum), and Fedora (dnf) - Replace generic "Homebrew not available" error with specific installation instructions - Provide clear guidance for manual installation across different Linux distributions - Improve user experience when mkcert is not installed Fixes the issue where Arch Linux users would get an unhelpful error message about Homebrew not being available, even though mkcert is available via pacman.
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
log_info "Installing mkcert with dnf..." | ||
log_info "Please run: sudo dnf install mkcert" | ||
log_error "Automatic installation with dnf requires sudo privileges" | ||
log_info "After installation, run the command again" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would keep Brew and Pacman, as they are the only distributions we support now.
For arch we neeed to install both packages: pacman -S nss mkcert
As we do for brew, we can actually run the command instead of just printing.
User description
Summary
Problem
Currently, when
mkcert
is not installed on non-macOS systems, users get an unhelpful error message:This is particularly problematic on Arch Linux where
mkcert
is available viapacman
, but users were only told about Homebrew.Solution
The
install_mkcert()
function now:Test plan
Example output on Arch Linux
PR Type
Enhancement
Description
Add support for multiple Linux package managers (pacman, apt, yum, dnf)
Replace generic Homebrew error with specific installation instructions
Provide comprehensive manual installation guidance for all distributions
Improve user experience with clear package manager detection
Changes walkthrough 📝
spark-http-proxy
Enhanced mkcert installation with multi-package manager support
bin/spark-http-proxy