diff --git a/deb/Makefile b/deb/Makefile index 619aaf4377..46087d927f 100644 --- a/deb/Makefile +++ b/deb/Makefile @@ -28,6 +28,7 @@ BUILD?=DOCKER_BUILDKIT=1 \ RUN_FLAGS= RUN?=docker run --rm \ -e PLATFORM \ + -e GOPROXY=https://proxy.golang.org \ -e EPOCH='$(EPOCH)' \ -e DEB_VERSION=$(word 1, $(GEN_DEB_VER)) \ -e VERSION=$(word 2, $(GEN_DEB_VER)) \ diff --git a/rpm/Makefile b/rpm/Makefile index d7fc055c69..96bb0f9c19 100644 --- a/rpm/Makefile +++ b/rpm/Makefile @@ -50,6 +50,7 @@ RPMBUILD_FLAGS?=-ba\ RUN_FLAGS= RUN?=docker run --rm \ -e PLATFORM \ + -e GOPROXY=https://proxy.golang.org \ -v $(CURDIR)/rpmbuild/SOURCES:/root/rpmbuild/SOURCES:ro \ -v $(CURDIR)/rpmbuild/$@/RPMS:/root/rpmbuild/RPMS \ -v $(CURDIR)/rpmbuild/$@/SRPMS:/root/rpmbuild/SRPMS \