git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] t5150: skip request-pull test if Perl is disabled

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Nov 26, 2019, 00:46 UTC
Message-ID
<20191126004647.GD14157@google.com>
In-Reply-To
<4f11b5b3-a68e-642a-c5fb-7b5dae698669@veniogames.com>
Ruud van Asseldonk wrote:
> The git-request-pull.sh script invokes Perl,
Okay, on second glance I found it:
  set fnord $(git ls-remote "$url" | @@PERL@@ -e "$find_matching_ref" "${remote:-HEAD}" "$headrev")
This does seem pretty inherently to require perl, so makes sense.

I wonder if we can generalize this. For example, would it make sense to have a helper that looks for @@PERL@@ in a file, so we could say

	if uses_perl git-request-pull.sh && ! test_have_prereq PERL
	then
		...
	fi

That way, this would be more futureproof in case someone eliminates the perl dependency (either by improving that particular parsing step or by rewriting the whole program in C).

In any event,
Reviewed-by: Jonathan Nieder <jrnieder@gmail.com>
Do the request-pull tests in t7006-pager.sh need the same treatment?

Thanks, Jonathan

Previous: Jonathan NiederNext: Ruud van Asseldonk
Message 3 of 11 in “t5150: skip request-pull test if Perl is disabled”
  1. t5150: skip request-pull test if Perl is disabledRuud van Asseldonk, Nov 26, 2019
  2. Jonathan NiederNov 26, 2019
  3. Jonathan NiederNov 26, 2019
  4. Ruud van AsseldonkNov 27, 2019
  5. Jeff KingNov 27, 2019
  6. Ruud van AsseldonkNov 27, 2019
  7. Jonathan NiederNov 28, 2019
  8. Jonathan NiederNov 28, 2019
  9. Junio C HamanoDec 2, 2019
  10. Jeff KingDec 13, 2019
  11. Junio C HamanoDec 16, 2019

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.