mirror of
https://github.com/prometheus/prometheus.git
synced 2025-03-05 20:59:13 -08:00
build: Ignore timestamps recording in gzip metadata
Use the `-n / --noname` option to ignore non-deterministric information, such as timestamps, in gzip metadata. This is required for [reproducible builds](https://reproducible-builds.org/). Signed-off-by: Robin Candau <robincandau@protonmail.com>
This commit is contained in:
parent
a5ffa83be8
commit
ef24d47df9
|
@ -13,9 +13,9 @@ fi
|
|||
cd web/ui
|
||||
cp embed.go.tmpl embed.go
|
||||
|
||||
GZIP_OPTS="-fk"
|
||||
GZIP_OPTS="-fkn"
|
||||
# gzip option '-k' may not always exist in the latest gzip available on different distros.
|
||||
if ! gzip -k -h &>/dev/null; then GZIP_OPTS="-f"; fi
|
||||
if ! gzip -k -h &>/dev/null; then GZIP_OPTS="-fn"; fi
|
||||
|
||||
mkdir -p static
|
||||
find static -type f -name '*.gz' -delete
|
||||
|
|
Loading…
Reference in a new issue