Skip to content

Commit 1dfe9a2

Browse files
committed
Makefile: enable GOPROXY to work around vanity URL being offline
The https://honnef.co/go/tools domain looks to be offline, causing projects that do not use vendoring to fail: go: downloading google.golang.org/protobuf v1.27.1 go: downloading github.com/matttproud/golang_protobuf_extensions v1.0.2-0.20181231171920-c182affec369 go: google.golang.org/[email protected] requires google.golang.org/[email protected] requires honnef.co/go/[email protected]: unrecognized import path "honnef.co/go/tools": reading https://honnef.co/go/tools?go-get=1: 502 Bad Gateway make: *** [Makefile:71: manpages] Error 1 For now, let's use the GOPROXY (we should look at making this a build-arg probably) Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent 015bb44 commit 1dfe9a2

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

deb/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ BUILD?=DOCKER_BUILDKIT=1 \
2828
RUN_FLAGS=
2929
RUN?=docker run --rm \
3030
-e PLATFORM \
31+
-e GOPROXY=https://proxy.golang.org \
3132
-e EPOCH='$(EPOCH)' \
3233
-e DEB_VERSION=$(word 1, $(GEN_DEB_VER)) \
3334
-e VERSION=$(word 2, $(GEN_DEB_VER)) \

rpm/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ RPMBUILD_FLAGS?=-ba\
5050
RUN_FLAGS=
5151
RUN?=docker run --rm \
5252
-e PLATFORM \
53+
-e GOPROXY=https://proxy.golang.org \
5354
-v $(CURDIR)/rpmbuild/SOURCES:/root/rpmbuild/SOURCES:ro \
5455
-v $(CURDIR)/rpmbuild/$@/RPMS:/root/rpmbuild/RPMS \
5556
-v $(CURDIR)/rpmbuild/$@/SRPMS:/root/rpmbuild/SRPMS \

0 commit comments

Comments
 (0)