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

Re: [PATCH] ci: avoid ubuntu:rolling in most jobs for now

From
CSColin Stagner <ask+git@howdoi.land>
Date
Feb 7, 2026, 05:35 UTC
Message-ID
<aac216f7-5d3a-47a9-aaee-5ea3a330fc95@howdoi.land>
In-Reply-To
<xmqq343dcfsy.fsf@gitster.g>
On 2/6/26 22:56, Junio C Hamano wrote:
Show 5 quoted lines
>> +	if test -x /usr/bin/gnudirname
>> +	then
>> +		ln -sfT /usr/bin/gnudirname /usr/bin/dirname
> "-T" is somewhat exotic, certainly outside POSIX, and is not needed
> in this case, no?
Correct, this works just fine without it. You can omit it.

When requesting an ln, I usually know and specify both filenames exactly. I do not desire directory behavior as I might for cp or mv. -T / --no-target-directory is useful for this, if perhaps non-portable.

The coreutils info docs [1] highlight an interesting race condition that is avoided by --no-target-directory:

   when the command ‘mv /tmp/source /tmp/dest’ succeeds,
   there is no guarantee that /tmp/source was renamed
   to /tmp/dest: it could have been renamed to
   /tmp/dest/source ...  if mv -T /tmp/source /tmp/dest
   succeeds, there is no question that /tmp/source was
   renamed to /tmp/dest.

but I avoid writing to /tmp itself with anything other than mktemp or rm, for this very reason.

[1]: https://www.gnu.org/software/coreutils/manual/html_node/Target-directory.html

Previous: Junio C Hamano
Message 6 of 6 in “ci: avoid ubuntu:rolling in most jobs for now”
  1. ci: avoid ubuntu:rolling in most jobs for nowJunio C Hamano, Feb 5, 2026
  2. Collin FunkFeb 5, 2026
  3. Patrick SteinhardtFeb 6, 2026
  4. Colin StagnerFeb 7, 2026
  5. Junio C HamanoFeb 7, 2026
  6. Colin StagnerFeb 7, 2026

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.