public inbox for goredo-devel@lists.stargrave.org
Atom feed
From: Sergey Matveev <stargrave@stargrave•org>
To: goredo-devel@lists.stargrave.org
Subject: Re: Source files with matching .do file keep targets ood
Date: Sat, 29 Aug 2026 19:00:52 +0300	[thread overview]
Message-ID: <apMCNDlBPQZIOvuU@stargrave.org> (raw)
In-Reply-To: <4846b4ed2ecef310e4be49093d72654b@spacefrogg.net>

[-- Attachment #1: Type: text/plain, Size: 1515 bytes --]

*** spacefrogg [2026-08-20 17:01]:
>I think, I have argued that before and I still think this behaviour is very
>wrong.
>[...]
>As we all agree, redo is a stateful build system.
>[...]
>Now, where I think goredo currently takes the wrong turn:
>It should not consider <A> OOD just because there is some .do file to
>produce <A>. If <A> exists before redo has a record of it, it should just
>treat <A> as a source and be happy. Obviously, redo will never rebuild <A>.
>So, if a user mistakenly has removed the .redo database, all current targets
>turn into sources and redo won't rebuild anything anymore. But hey, so is
>life. Complex project just have cleanup rules anyhow which the user can call
>and start over again.

I am convinced now.

I wanted to disagree, saying that the fact of .do-file appearance (or
its existence) is the change of the state already and we can
differentiate sources/targets without looking at the state-database.
But goredo already behaves differently with .do-files themselves: if
foo.do exists, then default.do nearby won't be executed. We can not
determine if foo.do was created by default.do or it is already existing
(source) file. And indeed you rely on proper cleanup rules, which leaves
real source .do files, removing the autogenerated ones.

Ongoing 2.10.0 release will behave differently now: any existing file
without corresponding .redo/*.dep will be treated like a source one.

-- 
 * Origin: Stargrave's homepage http://www.stargrave.org/

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 265 bytes --]

  reply	other threads:[~2026-08-29 16:01 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-07  6:25 Source files with matching .do file keep targets ood Nik Boehm
2026-08-07  8:03 ` Sergey Matveev
2026-08-07  8:36   ` Nik Boehm
2026-08-07  8:56     ` Sergey Matveev
2026-08-20 15:01       ` spacefrogg
2026-08-29 16:00         ` Sergey Matveev [this message]
2026-09-01  7:58         ` Sergey Matveev