Downloads:

19,722

Downloads of v 11.0.1:

2,385

Last Update:

4/16/2019

Package Maintainer(s):

Software Author(s):

  • BurntSushi

Tags:

search ripgrep rg

ripgrep

This is not the latest version of ripgrep available.

11.0.1 | Updated: 4/16/2019

Downloads:

19,722

Downloads of v 11.0.1:

2,385

Maintainer(s):

Software Author(s):

  • BurntSushi

Tags:

search ripgrep rg

ripgrep 11.0.1

This is not the latest version of ripgrep available.

All Checks are Passing

2 Passing Test


Validation Testing Passed


Verification Testing Passed

Details

To install ripgrep, run the following command from the command line or from PowerShell:

>

To upgrade ripgrep, run the following command from the command line or from PowerShell:

>

To uninstall ripgrep, run the following command from the command line or from PowerShell:

>

NOTE: This applies to both open source and commercial editions of Chocolatey.

1. Ensure you are set for organizational deployment

Please see the organizational deployment guide

  • Open Source or Commercial:
    • Proxy Repository - Create a proxy nuget repository on Nexus, Artifactory Pro, or a proxy Chocolatey repository on ProGet. Point your upstream to https://chocolatey.org/api/v2. Packages cache on first access automatically. Make sure your choco clients are using your proxy repository as a source and NOT the default community repository. See source command for more information.
    • You can also just download the package and push it to a repository Download

3. Enter your internal repository url

(this should look similar to https://chocolatey.org/api/v2)

4. Choose your deployment method:


choco upgrade ripgrep -y --source="'STEP 3 URL'" [other options]

See options you can pass to upgrade.

See best practices for scripting.

Add this to a PowerShell script or use a Batch script with tools and in places where you are calling directly to Chocolatey. If you are integrating, keep in mind enhanced exit codes.

If you do use a PowerShell script, use the following to ensure bad exit codes are shown as failures:


choco upgrade ripgrep -y --source="'STEP 3 URL'" 
$exitCode = $LASTEXITCODE

Write-Verbose "Exit code was $exitCode"
$validExitCodes = @(0, 1605, 1614, 1641, 3010)
if ($validExitCodes -contains $exitCode) {
  Exit 0
}

Exit $exitCode

- name: Ensure ripgrep installed
  win_chocolatey:
    name: ripgrep
    state: present
    version: 11.0.1
    source: STEP 3 URL

See docs at https://docs.ansible.com/ansible/latest/modules/win_chocolatey_module.html.

Coming early 2020! Central Managment Reporting available now! More information...


chocolatey_package 'ripgrep' do
  action    :install
  version  '11.0.1'
  source   'STEP 3 URL'
end

See docs at https://docs.chef.io/resource_chocolatey_package.html.


Chocolatey::Ensure-Package
(
    Name: ripgrep,
    Version: 11.0.1,
    Source: STEP 3 URL
);

Requires Otter Chocolatey Extension. See docs at https://inedo.com/den/otter/chocolatey.


cChocoPackageInstaller ripgrep
{
   Name     = 'ripgrep'
   Ensure   = 'Present'
   Version  = '11.0.1'
   Source   = 'STEP 3 URL'
}

Requires cChoco DSC Resource. See docs at https://github.com/chocolatey/cChoco.


package { 'ripgrep':
  provider => 'chocolatey',
  ensure   => '11.0.1',
  source   => 'STEP 3 URL',
}

Requires Puppet Chocolatey Provider module. See docs at https://forge.puppet.com/puppetlabs/chocolatey.


salt '*' chocolatey.install ripgrep version="11.0.1" source="STEP 3 URL"

See docs at https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.chocolatey.html.

5. If applicable - Chocolatey configuration/installation

See infrastructure management matrix for Chocolatey configuration elements and examples.

Private CDN cached downloads available for licensed customers. Never experience 404 breakages again! Learn more...

This package was approved as a trusted package on 7/3/2019.

Description

ripgrep is a command line search tool that combines the usability of The Silver Searcher (an ack clone)
with the raw speed of GNU grep. ripgrep has first class support on Windows, Mac and Linux, with binary
downloads available for every release.

  ## Notes

  We are currently depending on Visual C++ Redistributable for Visual Studio 2015 https://chocolatey.org/packages/vcredist2015. This will change once this https://github.com/rust-lang/rust/pull/37545 is resolved and ripgrep can statically link the CRT.

tools\chocolateyinstall.ps1
$ErrorActionPreference = 'Stop';

$version     = $env:chocolateyPackageVersion
$packageName = $env:chocolateyPackageName
$toolsDir    = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"

$url         = ("https://github.com/BurntSushi/ripgrep/releases/download/{0}/ripgrep-{0}-i686-pc-windows-msvc.zip" -f $version)
$url64       = ("https://github.com/BurntSushi/ripgrep/releases/download/{0}/ripgrep-{0}-x86_64-pc-windows-msvc.zip" -f $version)

$packageArgs = @{
    packageName    = $packageName
    unzipLocation  = $toolsDir
    fileType       = 'exe'
    url            = $url
    checksum       = "00F8319FA863B69141728AF57543B3D1FD2228F0"
    checksumType   = "sha1"
    url64bit       = $url64
    checksum64     = "6AF5BF5EE7FBE32C49156421C8FF128A543A6DBE"
    checksumType64 = "sha1"
}

Install-ChocolateyZipPackage @packageArgs

In cases where actual malware is found, the packages are subject to removal. Software sometimes has false positives. Moderators do not necessarily validate the safety of the underlying software, only that a package retrieves software from the official distribution point and/or validate embedded software against official distribution point (where distribution rights allow redistribution).

Chocolatey Pro provides runtime protection from possible malware.

Version Downloads Last Updated Status
ripgrep 11.0.1 2385 Tuesday, April 16, 2019 Approved
ripgrep 0.10.0 3569 Monday, September 10, 2018 Approved
ripgrep 0.9.0 933 Tuesday, August 7, 2018 Approved
ripgrep 0.8.1 2476 Wednesday, February 21, 2018 Approved
ripgrep 0.8.0 497 Monday, February 12, 2018 Approved
ripgrep 0.7.1 1601 Tuesday, October 24, 2017 Approved
ripgrep 0.6.0 1135 Friday, August 25, 2017 Approved
ripgrep 0.5.2 1132 Tuesday, May 23, 2017 Approved
ripgrep 0.5.1 574 Thursday, April 20, 2017 Approved

ripgrep 11.0.1 is a new patch release that fixes a search regression introduced
in the previous 11.0.0 release. In particular, ripgrep can enter an infinite
loop for some search patterns when searching invalid UTF-8.

Bug fixes:

  • BUG #1247:
    Fix search bug that can cause ripgrep to enter an infinite loop.

Notes for 11.0.0

ripgrep 11 is a new major version release of ripgrep that contains many bug
fixes, some performance improvements and a few feature enhancements. Notably,
ripgrep's user experience for binary file filtering has been improved. See the
guide's new section on binary data for more details.

In case you haven't heard of it before, ripgrep is a line-oriented search
tool that recursively searches your current directory for a regex pattern. By
default, ripgrep will respect your .gitignore and automatically skip hidden
files/directories and binary files.

This release also marks a change in ripgrep's versioning. Where as the previous
version was 0.10.0, this version is 11.0.0. Moving forward, ripgrep's
major version will be increased a few times per year. ripgrep will continue to
be conservative with respect to backwards compatibility, but may occasionally
introduce breaking changes, which will always be documented in this CHANGELOG.
See issue 1172 for a bit
more detail on why this versioning change was made.

This release increases the minimum supported Rust version from 1.28.0 to
1.34.0.

BREAKING CHANGES:

  • ripgrep has tweaked its exit status codes to be more like GNU grep's. Namely,
    if a non-fatal error occurs during a search, then ripgrep will now always
    emit a 2 exit status code, regardless of whether a match is found or not.
    Previously, ripgrep would only emit a 2 exit status code for a catastrophic
    error (e.g., regex syntax error). One exception to this is if ripgrep is run
    with -q/--quiet. In that case, if an error occurs and a match is found,
    then ripgrep will exit with a 0 exit status code.
  • Supplying the -u/--unrestricted flag three times is now equivalent to
    supplying --no-ignore --hidden --binary. Previously, -uuu was equivalent
    to --no-ignore --hidden --text. The difference is that --binary disables
    binary file filtering without potentially dumping binary data into your
    terminal. That is, rg -uuu foo should now be equivalent to grep -r foo.
  • The avx-accel feature of ripgrep has been removed since it is no longer
    necessary. All uses of AVX in ripgrep are now enabled automatically via
    runtime CPU feature detection. The simd-accel feature does remain available
    (only for enabling SIMD for transcoding), however, it does increase
    compilation times substantially at the moment.

Performance improvements:

Feature enhancements:

  • Added or improved file type filtering for Apache Thrift, ASP, Bazel, Brotli,
    BuildStream, bzip2, C, C++, Cython, gzip, Java, Make, Postscript, QML, Tex,
    XML, xz, zig and zstd.
  • FEATURE #855:
    Add --binary flag for disabling binary file filtering.
  • FEATURE #1078:
    Add --max-columns-preview flag for showing a preview of long lines.
  • FEATURE #1099:
    Add support for Brotli and Zstd to the -z/--search-zip flag.
  • FEATURE #1138:
    Add --no-ignore-dot flag for ignoring .ignore files.
  • FEATURE #1155:
    Add --auto-hybrid-regex flag for automatically falling back to PCRE2.
  • FEATURE #1159:
    ripgrep's exit status logic should now match GNU grep. See updated man page.
  • FEATURE #1164:
    Add --ignore-file-case-insensitive for case insensitive ignore globs.
  • FEATURE #1185:
    Add -I flag as a short option for the --no-filename flag.
  • FEATURE #1207:
    Add none value to -E/--encoding to forcefully disable all transcoding.
  • FEATURE da9d7204:
    Add --pcre2-version for querying showing PCRE2 version information.

Bug fixes:

  • BUG #306,
    BUG #855:
    Improve the user experience for ripgrep's binary file filtering.
  • BUG #373,
    BUG #1098:
    ** is now accepted as valid syntax anywhere in a glob.
  • BUG #916:
    ripgrep no longer hangs when searching /proc with a zombie process present.
  • BUG #1052:
    Fix bug where ripgrep could panic when transcoding UTF-16 files.
  • BUG #1055:
    Suggest -U/--multiline when a pattern contains a \n.
  • BUG #1063:
    Always strip a BOM if it's present, even for UTF-8.
  • BUG #1064:
    Fix inner literal detection that could lead to incorrect matches.
  • BUG #1079:
    Fixes a bug where the order of globs could result in missing a match.
  • BUG #1089:
    Fix another bug where ripgrep could panic when transcoding UTF-16 files.
  • BUG #1091:
    Add note about inverted flags to the man page.
  • BUG #1093:
    Fix handling of literal slashes in gitignore patterns.
  • BUG #1095:
    Fix corner cases involving the --crlf flag.
  • BUG #1101:
    Fix AsciiDoc escaping for man page output.
  • BUG #1103:
    Clarify what --encoding auto does.
  • BUG #1106:
    --files-with-matches and --files-without-match work with one file.
  • BUG #1121:
    Fix bug that was triggering Windows antimalware when using the --files
    flag.
  • BUG #1125,
    BUG #1159:
    ripgrep shouldn't panic for rg -h | rg and should emit correct exit status.
  • BUG #1144:
    Fixes a bug where line numbers could be wrong on big-endian machines.
  • BUG #1154:
    Windows files with \"hidden\" attribute are now treated as hidden.
  • BUG #1173:
    Fix handling of ** patterns in gitignore files.
  • BUG #1174:
    Fix handling of repeated ** patterns in gitignore files.
  • BUG #1176:
    Fix bug where -F/-x weren't applied to patterns given via -f.
  • BUG #1189:
    Document cases where ripgrep may use a lot of memory.
  • BUG #1203:
    Fix a matching bug related to the suffix literal optimization.
  • BUG 8f14cb18:
    Increase the default stack size for PCRE2's JIT.
Discussion for the ripgrep Package

Ground Rules:

  • This discussion is only about ripgrep and the ripgrep package. If you have feedback for Chocolatey, please contact the Google Group.
  • This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
  • The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
  • Tell us what you love about the package or ripgrep, or tell us what needs improvement.
  • Share your experiences with the package, or extra configuration or gotchas that you've found.
  • If you use a url, the comment will be flagged for moderation until you've been whitelisted. Disqus moderated comments are approved on a weekly schedule if not sooner. It could take between 1-5 days for your comment to show up.
comments powered by Disqus