Accepting request 1065931 from home:witekbedyk:branches:server:monitoring

- Update prometheus/exporter-toolkit to version 0.7.3
  (bsc#1208065, CVE-2022-46146)
- Require Go 1.19 or newer

OBS-URL: https://build.opensuse.org/request/show/1065931
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/grafana?expand=0&rev=95
This commit is contained in:
Tatjana Dehler
2023-02-16 15:27:16 +00:00
committed by Git OBS Bridge
parent 265b315980
commit 6af155934e
7 changed files with 44 additions and 6 deletions

View File

@@ -24,7 +24,12 @@ tar:
cd $$basename && \
# Patches for the JS frontend go after here \
patch --no-backup-if-mismatch -p1 -i ../../0001-Add-source-code-reference.patch && \
patch --no-backup-if-mismatch -p1 -i ../../0002-Update-exporter-toolkit-to-version-0.7.3.patch && \
# End patches section \
go mod download && \
go mod verify && \
go mod vendor && \
tar --format=posix -cf ../../vendor.tar vendor && \
# avoid ".git can't be found" \
git init && \
# avoid "FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory" \
@@ -36,4 +41,5 @@ tar:
tar -rf ../$$tar $$basename/public && \
cd .. && \
gzip $$tar && \
gzip -f vendor.tar && \
rm -rf $$tmpdir