From abb8b609edc0314fdc5bfc17af160def2d87eb41 Mon Sep 17 00:00:00 2001 From: Nicolas MASSE Date: Sun, 2 May 2021 15:13:05 +0200 Subject: [PATCH] fix build in mock --- rpmbuild/SPECS/traefik.spec | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/rpmbuild/SPECS/traefik.spec b/rpmbuild/SPECS/traefik.spec index 8f7cf04..630e2ea 100644 --- a/rpmbuild/SPECS/traefik.spec +++ b/rpmbuild/SPECS/traefik.spec @@ -24,6 +24,8 @@ Requires(pre): shadow-utils BuildRequires: systemd BuildRequires: breezy BuildRequires: golang >= 1.15 +BuildRequires: git +BuildRequires: go-bindata %description %{common_description} @@ -42,6 +44,10 @@ cp %{S:2} %{name}.yaml %build GO111MODULE=off go get github.com/containous/go-bindata/... + +# Workaround for "GOVCS disallows using bzr for public XXX" +export GOVCS='private:all,public:all' + go generate CGO_ENABLED=0 GO111MODULE=on go build -o %{gobuilddir}/traefik %{goipath}/cmd/traefik