Skip to content

[master] Makefile: enable GOPROXY to work around vanity URL being offline - #684

Merged
thaJeztah merged 1 commit into
docker:masterfrom
thaJeztah:use_goproxy_by_default
May 5, 2022
Merged

[master] Makefile: enable GOPROXY to work around vanity URL being offline#684
thaJeztah merged 1 commit into
docker:masterfrom
thaJeztah:use_goproxy_by_default

Conversation

@thaJeztah

Copy link
Copy Markdown
Member

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/grpc@v1.44.0 requires
google.golang.org/genproto@v0.0.0-20200526211855-cb27e3aa2013 requires
honnef.co/go/tools@v0.0.0-20190523083050-ea95bdfd59fc: 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)

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/grpc@v1.44.0 requires
google.golang.org/genproto@v0.0.0-20200526211855-cb27e3aa2013 requires
honnef.co/go/tools@v0.0.0-20190523083050-ea95bdfd59fc: 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 <github@gone.nl>
@thaJeztah

Copy link
Copy Markdown
MemberAuthor

FWIW; for some cases (such as a security release, where we may need a temporary fork of dependencies), we may have to override GOPROXY to use direct, so we need to look at better options (as mentioned above).

This is just to get CI pass again

@thaJeztahthaJeztah mentioned this pull request May 5, 2022
@thaJeztahthaJeztah changed the title Makefile: enable GOPROXY to work around vanity URL being offline[master] Makefile: enable GOPROXY to work around vanity URL being offlineMay 5, 2022
@thaJeztah

Copy link
Copy Markdown
MemberAuthor

Discussing with @crazy-max - we can also specify both as default (https://proxy.golang.org/,direct or perhaps the reverse; direct,https://proxy.golang.org/).

We'll need to try if that works for these situations; let me keep it simple for now (but look at it for a follow-up)

@thaJeztah

Copy link
Copy Markdown
MemberAuthor

Thx! Let me bring this one in

@thaJeztah
thaJeztah merged commit 1705ee0 into docker:masterMay 5, 2022
@thaJeztah
thaJeztah deleted the use_goproxy_by_default branch May 5, 2022 11:11
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@thaJeztah@rumpl@crazy-max