all repos — searchix @ 762d97b5cca3a5b1605f34bff57e785b93833450

Search engine for NixOS, nix-darwin, home-manager and NUR users

fix: set date of files copied from nix store

Alan Pearce
commit

762d97b5cca3a5b1605f34bff57e785b93833450

parent

faf67ad3fe2514492c6e0b0cf5361d5b44275a06

1 file changed, 5 insertions(+), 0 deletions(-)

changed files
M internal/fetcher/channel.gointernal/fetcher/channel.go
@@ -89,6 +89,11 @@ err := i.Root.CopyTo(outPath, target)
if err != nil { return nil, fault.Wrap(err, fmsg.With("failed to copy options.json")) } + + err = i.Root.Chtimes(target, time.Time{}, sourceMeta.UpdatedAt) + if err != nil { + return nil, fault.Wrap(err, fmsg.With("failed to update timestamps")) + } } file, err := i.Root.Open(target)