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

Re: [PATCH] SKIP_DASHED_BUILT_INS: respect `config.mak`

From
Junio C Hamano <gitster@pobox.com>
Date
Jan 22, 2021, 21:50 UTC
Message-ID
<xmqqft2s7iac.fsf@gitster.c.googlers.com>
In-Reply-To
<nycvar.QRO.7.76.6.2101221935230.52@tvgsbejvaqbjf.bet>
Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
Show 16 quoted lines
>> By the way, I wonder if we can (semi-)automate looking for such a
>> mistake in the future.  Does a simple rule like:
>>
>>     No variable that has "Define X if you want to distim the doshes"
>>     at the beginning of the Makefile must be referenced before we
>>     include config.mak
>>
>> work?
> ...
> The only thing that sticks out in this output is that we use SHELL_PATH a
> couple times before including config.mak.
> ...
> And I don't think that this hack of mine can be converted into a robust
> check that we'd want to run to verify that the Makefile does not use
> constants before they are potentially defined in config.mak,
> unfortunately.

Oh, I wasn't expecting all the work be done by you in your busy schedule ;-) The primary thing I was looking for was to sanity check the idea of the general rule. Implementation of it can start as something the reviewers would keep in their heads. A script with false positives that authors can use to be reminded may come next.

We do not have to jump to the perfection from day one, in other words.

Previous: Johannes Schindelin
Message 4 of 4 in “SKIP_DASHED_BUILT_INS: respect `config.mak`”
  1. SKIP_DASHED_BUILT_INS: respect `config.mak`Johannes Schindelin via GitGitGadget, Jan 21, 2021
  2. Junio C HamanoJan 21, 2021
  3. Johannes SchindelinJan 22, 2021
  4. Junio C HamanoJan 22, 2021

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.