prometheus/util
Jan Fajerski ddaddc2a7a
Replace vfsgen with embed for static web assets (#9719)
* remove vfsgen usages

Signed-off-by: Jan Fajerski <jfajersk@redhat.com>

* web: use embed package for static assets

This requires go 1.16.

Signed-off-by: Jan Fajerski <jfajersk@redhat.com>

* circleci: drop go generate in web/ui

Signed-off-by: Jan Fajerski <jfajersk@redhat.com>

* Makefile: compress web assets before build

This commit add compression before (and decompression after) prometheus
is build. This ensures that gzipped assets are embeded in the prometheus
binary, if the builtinassets build tag is passed. If the build tag is
not passed this step is still executed but has no effect.
All this is executed in a subshell so that we can run the decompress
step even if the build step fails, but retain the exit code of promu.
This cleanup could also cover interrupts, but I left that out for now.

Signed-off-by: Jan Fajerski <jfajersk@redhat.com>

* [FIXME]: add new module dependency on common/assets and temp replace

Signed-off-by: Jan Fajerski <jfajersk@redhat.com>
2021-11-25 15:04:51 +01:00
..
gate Move packages out of deprecated pkg directory 2021-11-09 08:03:10 +01:00
httputil tests: Move from t.Errorf and others. (Part 2) (#9309) 2021-09-13 21:19:20 +02:00
logging Move packages out of deprecated pkg directory 2021-11-09 08:03:10 +01:00
osutil Format Go source files using 'gofumpt -w -s -extra' 2021-11-02 19:52:34 +01:00
pool Move packages out of deprecated pkg directory 2021-11-09 08:03:10 +01:00
runtime Move packages out of deprecated pkg directory 2021-11-09 08:03:10 +01:00
stats tests: Move from t.Errorf and others. (Part 2) (#9309) 2021-09-13 21:19:20 +02:00
strutil Format Go source files using 'gofumpt -w -s -extra' 2021-11-02 19:52:34 +01:00
teststorage Move packages out of deprecated pkg directory 2021-11-09 08:03:10 +01:00
testutil util/testutil: add RandomUnprivilegedPort function 2021-11-10 09:40:43 +01:00
treecache Switched to go-kit/log 2021-06-11 12:28:36 -04:00