fix: set date of files copied from nix store
1 file changed, 5 insertions(+), 0 deletions(-)
changed files
M internal/fetcher/channel.go → internal/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)