commit | c41e549b81a52ab016480f87c7c1ef00d18be8c6 | [log] [tgz] |
---|---|---|
author | David 'Digit' Turner <digit@google.com> | Tue Jul 27 17:31:00 2021 +0000 |
committer | CQ Bot <commit-bot@chromium.org> | Tue Jul 27 17:31:00 2021 +0000 |
tree | 9aa6fb3b0911d914bc3379bf6c4912a817cd0b5b | |
parent | 3cf03b30141aa7984de2bf673bbfb13c766d48d2 [diff] |
[build][tarmaker] Sort entries to make output more deterministic The 'tarmaker' implementation uses a map[string]string container that has randomized key order during iteration. This resulted in non-deterministic outputs every time the tool was run with the same inputs. This fixes the issue by sorting the entries by path in the archive before generating it. Note that the output is not fully deterministic yet, because the file timestamps and user/group values are not normalized at the moment. Fixed: 81322 Change-Id: Ib57d2efcc589179865b9f06706047fc983663f0c Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/559204 Commit-Queue: David Turner <digit@google.com> Reviewed-by: David Fang <fangism@google.com> Reviewed-by: Jay Zhuang <jayzhuang@google.com>
Pink + Purple == Fuchsia (a new operating system)
Fuchsia is a modular, capability-based operating system. Fuchsia runs on modern 64-bit Intel and ARM processors.
Fuchsia is an open source project with a code of conduct that we expect everyone who interacts with the project to respect.
Read more about Fuchsia's principles.
See Getting Started.
See fuchsia.dev.