[Cook] (ingredients-)fingerprint question.
Aryeh M. Friedman
aryeh.friedman at gmail.com
Sun Nov 15 19:13:46 EST 2009
Fingerprints are based on file content not on time stamp (i.e. I can
"touch" the file and cook will still see it as the same)... the only way
to fix this is to use time stamps not finger print on the particular
file (I don't have the manual handy so you will have to look the syntex
up)... but you really should be sure if this is what you *REALLY* want
because fingerprint using actual file contents is 99.9999...% of the
time correct (namely every time I think I have a problem like this it
turns out to be something else)
dwark wrote:
> Hi List,
>
> I am new to cook and I'm trying to create a recipe that will
> create a summary out of a changing set of files. The summary
> should be rebuilt whenever a file is added/removed or updated
> (i.e. contents changed).
>
> The combination of fingerprints and ingredients-fingerprint
> looks to be a perfect match and indeed works largely as advertised.
> Except for when the set of input files grows from 1 to 2 files,
> for the first time.
>
> It looks like the ingredients-fingerprint is not taken when
> the target is being built for the first time. The second
> time around, cook can't see if the list has changed.
>
> Another thing is that fingerprinting the target itself, seems
> to rejuvenate the target file to an age younger than it should
> be (in the example below, summ should not be younger than 2.txt
> during the second run).
>
> Am I missing something, like an additional flag or something?
>
> The current workaround is to force the recipe when there are
> only 2 input files.
>
> Any hints/pointers would be appreciated.
>
> Thanks,
>
>
More information about the Cook-users
mailing list