From 44f7c8eb1260be7a3257cc628e844e3cc0359a5c Mon Sep 17 00:00:00 2001 From: Liwei Ge Date: Fri, 19 Feb 2021 23:08:48 +0800 Subject: [PATCH] build: use cn proxy for go build Signed-off-by: Liwei Ge Change-Id: Ia6509c5643bdabf0319c12bc234a12be8ca061f8 --- grafana.spec | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/grafana.spec b/grafana.spec index ada6d1f..f337812 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: 4%{?dist} +Release: 4%{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 +* Wed Dec 15 2021 Liwei Ge 7.5.9-4.0.1 +- Use cn proxy for go build + * Wed Oct 06 2021 Andreas Gerstmayr 7.5.9-4 - resolve CVE-2021-39226 -- Gitee