diff --git a/grafana.spec b/grafana.spec index 218af2895d649b367d9402046fb0e65b84b55784..b51fb7a6d21790098e721159360d2f58d32a2038 100644 --- a/grafana.spec +++ b/grafana.spec @@ -1,3 +1,4 @@ +%define anolis_release .0.1 # gobuild and gotest macros are not available on CentOS Stream # remove once BZ 1965292 is resolved # definitions lifted from Fedora 34 podman.spec @@ -30,7 +31,7 @@ end} Name: grafana Version: 7.5.11 -Release: 2%{?dist} +Release: 2%{anolis_release}%{?dist} Summary: Metrics dashboard and graph editor License: ASL 2.0 URL: https://grafana.org @@ -503,6 +504,8 @@ ln -s %{_builddir}/%{name}-%{version} \ # Build the frontend %if %{compile_frontend} %{SOURCE5} +# export GO111MODULE=off +go env -w GOPROXY=https://goproxy.cn %endif # Build the backend @@ -674,6 +677,9 @@ GOLANG_FIPS=1 go test -v ./pkg/util -run TestEncryption %changelog +* Tue Apr 26 2022 Liwei Ge 7.5.11-2.0.1 +- Use cn proxy for go build + * Thu Dec 16 2021 Andreas Gerstmayr 7.5.11-2 - resolve CVE-2021-44716 golang: net/http: limit growth of header canonicalization cache - resolve CVE-2021-43813 grafana: directory traversal vulnerability for *.md files