help-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Modification date of /gnu/store files is 1970-01-01


From: Tobias Geerinckx-Rice
Subject: Re: Modification date of /gnu/store files is 1970-01-01
Date: Wed, 21 Oct 2020 20:05:03 +0200

Martin,

Martin Michel 写道:
So far so good, but I could not figure out what is wrong with the file system entries of /gnu/store. All entries there have a timestamp of UNIX epoch 0.

Well spotted! This is intentional. The Guix daemon[0] changes all timestamps of all files added to the store to a known value. Same for other metadata like ownership and some permission bits.

If it did not, certain software could (and does) behave differently between two different machines with otherwise identical stores.

Kind regards,

T G-R

[0]: Inherited from Nix and still in C++: http://git.savannah.gnu.org/cgit/guix.git/tree/nix/libstore/local-store.hh#n293

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]