Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
May 5, 2022

Conversation

thaJeztah
Copy link
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
Member Author

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

@thaJeztah thaJeztah changed the title Makefile: enable GOPROXY to work around vanity URL being offline [master] Makefile: enable GOPROXY to work around vanity URL being offline May 5, 2022
@thaJeztah
Copy link
Member Author

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
Member Author

Thx! Let me bring this one in

@thaJeztah thaJeztah merged commit 1705ee0 into docker:master May 5, 2022
@thaJeztah thaJeztah deleted the use_goproxy_by_default branch May 5, 2022 11:11
Sign up for free to 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