From 4a0c5eb4941c9a6a6ce189c49fd4c74bac14b5b9 Mon Sep 17 00:00:00 2001 From: renbo02 Date: Wed, 15 Dec 2021 08:28:31 +0000 Subject: [PATCH] build: use cn proxy for go build Signed-off-by: Liwei Ge --- grafana.spec | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/grafana.spec b/grafana.spec index 0da9ff2..7a40346 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 -- Gitee