Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jun 5, 2025

This PR adds ripgrep binary installation support for both macOS and Linux environments to resolve the Ubuntu installation issues mentioned in the original ticket.

Changes Made

  • Added script/install.d/24-ripgrep.sh: New install script that handles ripgrep installation for both platforms:

    • Linux: Uses apt-get install ripgrep (resolves previous Ubuntu packaging conflicts)
    • macOS: Uses brew install ripgrep
    • Follows the same pattern as other install scripts (checks if already installed, handles OS detection)
    • Is idempotent and safe to run multiple times
  • Updated tests/test_binaries.py: Added "rg" to the binaries list to ensure ripgrep is verified during test runs

Testing

The solution was tested on Ubuntu 24.04 with ripgrep 14.1.0, which resolves the packaging conflicts that previously required --force-overwrite in earlier versions (11.0.2). The script:

  • ✅ Installs ripgrep successfully from scratch
  • ✅ Is idempotent when ripgrep is already installed
  • ✅ Integrates properly with the existing install framework
  • ✅ Passes binary availability tests

Previous Ubuntu Issues

The original Ubuntu installation issues requiring these commands:

sudo apt install ripgrep
sudo dpkg -i --force-overwrite /var/cache/apt/archives/ripgrep_11.0.2-1build1_amd64.deb
sudo apt -f install

Are resolved with the newer ripgrep package version (14.1.0) available in current Ubuntu repositories.

Fixes #10.

Warning

Firewall rules blocked me from connecting to one or more addresses

I tried to connect to the following addresses, but was blocked by firewall rules:

  • esm.ubuntu.com
    • Triggering command: /usr/lib/apt/methods/https (dns block)

If you need me to access, download, or install something from one of these locations, you can either:


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI changed the title [WIP] ripgrep ubuntu Add ripgrep installation for macOS and Linux environments Jun 5, 2025
Copilot AI requested a review from andrejusk June 5, 2025 19:11
@andrejusk andrejusk marked this pull request as ready for review June 5, 2025 20:59
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.

ripgrep ubuntu

2 participants