mirror of
https://github.com/prometheus/prometheus.git
synced 2025-01-12 06:17:27 -08:00
Merge pull request #13363 from jan--f/embed.go-sorted-file-list
scripts: sort file list in embed directive
This commit is contained in:
commit
fb74a3e2d7
|
@ -12,5 +12,5 @@ GZIP_OPTS="-fk"
|
||||||
if ! gzip -k -h &>/dev/null; then GZIP_OPTS="-f"; fi
|
if ! gzip -k -h &>/dev/null; then GZIP_OPTS="-f"; fi
|
||||||
|
|
||||||
find static -type f -name '*.gz' -delete
|
find static -type f -name '*.gz' -delete
|
||||||
find static -type f -exec gzip $GZIP_OPTS '{}' \; -print0 | xargs -0 -I % echo %.gz | xargs echo //go:embed >> embed.go
|
find static -type f -exec gzip $GZIP_OPTS '{}' \; -print0 | xargs -0 -I % echo %.gz | sort | xargs echo //go:embed >> embed.go
|
||||||
echo var EmbedFS embed.FS >> embed.go
|
echo var EmbedFS embed.FS >> embed.go
|
||||||
|
|
Loading…
Reference in a new issue