diff --git a/grafana.spec b/grafana.spec index 0da9ff28c8c4264f40c79e22e4e108a217869212..7a403460b8df995676cf315bde6f27b7214e93f9 100644 --- a/grafana.spec +++ b/grafana.spec @@ -1,3 +1,4 @@ +%define anolis_release .0.1 %global grafana_arches %{lua: go_arches = {} for arch in rpm.expand("%{go_arches}"):gmatch("%S+") do go_arches[arch] = 1 @@ -20,7 +21,7 @@ end} Name: grafana Version: 7.5.9 -Release: 5%{?dist} +Release: 5%{anolis_release}%{?dist} Summary: Metrics dashboard and graph editor License: ASL 2.0 URL: https://grafana.org @@ -494,6 +495,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 @@ -661,6 +664,9 @@ GOLANG_FIPS=1 go test -v ./pkg/util -run TestEncryption %changelog +* Mon Jan 10 2022 Liwei Ge 7.5.9-5.0.1 +- Use cn proxy for go build + * Tue Dec 21 2021 Andreas Gerstmayr 7.5.9-5 - resolve CVE-2021-44716 golang: net/http: limit growth of header canonicalization cache