Skip to content

ripgrep: install from apt instead of a pinned 2019 .deb - #25

Merged
presto8 merged 1 commit into
mainfrom
fix/ripgrep-from-apt
Aug 28, 2026
Merged

presto8 merged 1 commit into
mainfrom
fix/ripgrep-from-apt

Conversation

@presto8

@presto8 presto8 commented Aug 28, 2026

Copy link
Copy Markdown
Owner

The 'ripgrep not available via apt install' comment predates Ubuntu
20.04; ripgrep has been in universe since then and this script already
refuses to run on anything older than 22.04. The hard-coded 11.0.2
release from 2019 was overwriting whatever the archive provides -- on
24.04 that is 15.1.0 -- and did so on every run, since dpkg -i happily
downgrades and re-installs.

Also drops a download into a predictable /tmp path.


🤖 Generated with Claude Code

The 'ripgrep not available via apt install' comment predates Ubuntu
20.04; ripgrep has been in universe since then and this script already
refuses to run on anything older than 22.04. The hard-coded 11.0.2
release from 2019 was overwriting whatever the archive provides -- on
24.04 that is 15.1.0 -- and did so on every run, since dpkg -i happily
downgrades and re-installs.

Also drops a download into a predictable /tmp path.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

The change is small, consistent with existing package installation patterns in the script, and eliminates a downgrade-prone pinned .deb install path.

Pull request overview

Updates the Prestobuntu setup script to install ripgrep from Ubuntu’s apt repositories (supported on 22.04+) rather than downloading and installing a pinned 2019 .deb, preventing unintended downgrades and repeated reinstalls.

Changes:

  • Replace the hard-coded ripgrep_11.0.2_amd64.deb download + dpkg -i flow with install_package ripgrep.
  • Remove use of a predictable /tmp/ripgrep.deb download path for this install step.
File summaries
File Description
setup Switches install_ripgrep() to use apt via install_package, avoiding pinned external .deb installs and downgrades.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@presto8
presto8 merged commit 846fa30 into main Aug 28, 2026
2 checks passed
@presto8
presto8 deleted the fix/ripgrep-from-apt branch August 28, 2026 22:02
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