From ac02147d1c46801ef967f669535c5a9284de07de Mon Sep 17 00:00:00 2001 From: songmingliang Date: Tue, 26 Apr 2022 17:07:50 +0800 Subject: [PATCH] build: use cn proxy for go build --- grafana.spec | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/grafana.spec b/grafana.spec index 218af28..b51fb7a 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 -- Gitee