public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Josh Stone <jistone@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/rust-ripgrep] rawhide: Fix tests for Rust 1.100 (ripgrep#3501)
Date: Sat, 14 Nov 2026 22:40:18 GMT	[thread overview]
Message-ID: <179469601893.1.17112498550342657191.rpms-rust-ripgrep-4d29be34e7f5@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/rust-ripgrep
Branch : rawhide
Commit : 4d29be34e7f5cd125cde83a6bbc8d8e2221249d5
Author : Josh Stone <jistone@redhat.com>
Date   : 2026-11-14T14:38:22-08:00
Stats  : +34/-0 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/rust-ripgrep/c/4d29be34e7f5cd125cde83a6bbc8d8e2221249d5?branch=rawhide

Log:
Fix tests for Rust 1.100 (ripgrep#3501)

---
diff --git a/0001-ci-fix-binary-discovery.patch b/0001-ci-fix-binary-discovery.patch
new file mode 100644
index 0000000..1f6bfd4
--- /dev/null
+++ b/0001-ci-fix-binary-discovery.patch
@@ -0,0 +1,32 @@
+From 7525479a9576f1ca4c2d04339d78e47ff5ae9b05 Mon Sep 17 00:00:00 2001
+From: Andrew Gallant <jamslam@gmail.com>
+Date: Mon, 3 Aug 2026 07:28:10 -0400
+Subject: [PATCH] ci: fix binary discovery
+
+It looks like the location of executables is changing in Cargo's test
+runner, so use the blessed way of discovering an executable. That is,
+for ripgrep, consult the `CARGO_BIN_EXE_rg` environment variable.
+---
+ tests/util.rs | 6 +++++-
+ 1 file changed, 5 insertions(+), 1 deletion(-)
+
+diff --git a/tests/util.rs b/tests/util.rs
+index db7331c27ecd..c0aa59cf91e6 100644
+--- a/tests/util.rs
++++ b/tests/util.rs
+@@ -177,7 +177,11 @@ impl Dir {
+ 
+     /// Returns the path to the ripgrep executable.
+     pub fn bin(&self) -> process::Command {
+-        let rg = self.root.join(format!("../rg{}", env::consts::EXE_SUFFIX));
++        let rg = std::env::var_os("CARGO_BIN_EXE_rg")
++            .map(PathBuf::from)
++            .unwrap_or_else(|| {
++                self.root.join(format!("../rg{}", env::consts::EXE_SUFFIX))
++            });
+         match cross_runner() {
+             None => process::Command::new(rg),
+             Some(runner) => {
+-- 
+2.56.0
+

diff --git a/rust-ripgrep.spec b/rust-ripgrep.spec
index 296bacc..13ca207 100644
--- a/rust-ripgrep.spec
+++ b/rust-ripgrep.spec
@@ -13,6 +13,8 @@ URL:            https://crates.io/crates/ripgrep
 Source:         %{crates_source}
 # Automatically generated patch to strip dependencies and normalize metadata
 Patch:          ripgrep-fix-metadata-auto.diff
+# https://github.com/BurntSushi/ripgrep/pull/3501
+Patch:          0001-ci-fix-binary-discovery.patch
 
 BuildRequires:  cargo-rpm-macros >= 24
 

                 reply	other threads:[~2026-11-14 22:40 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179469601893.1.17112498550342657191.rpms-rust-ripgrep-4d29be34e7f5@fedoraproject.org \
    --to=jistone@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox