itzg / mc-router

Routes Minecraft client connections to backend servers based upon the requested server address

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build fails due to problems with gopkg.in

vorburger opened this issue · comments

I'm trying to build mc-router as documented on https://github.com/itzg/mc-router#building-locally-with-docker in order to contribute #23 and it's failing like this:

$ docker run -it --rm \
        -v gopkg:/go/pkg:Z \
        -v {$PWD}:/build:Z -w /build \
        golang:1.12 \
        go build ./cmd/mc-router
go: finding github.com/stretchr/testify v1.3.0
go: finding github.com/golang/groupcache v0.0.0-20160516000752-02826c3e7903
go: finding github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742
go: finding github.com/stretchr/objx v0.1.0
go: finding github.com/kisielk/errcheck v1.2.0
go: finding github.com/Azure/go-autorest/autorest/adal v0.5.0
go: finding github.com/googleapis/gnostic v0.1.0
go: finding golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e
go: finding golang.org/x/text v0.3.0
go: finding gopkg.in/yaml.v2 v2.2.8
go: finding gopkg.in/inf.v0 v0.9.1
go: gopkg.in/yaml.v2@v2.2.8: unknown revision v2.2.8
go: gopkg.in/inf.v0@v0.9.1: unknown revision v0.9.1
go: finding github.com/stretchr/objx v0.1.1
go: finding google.golang.org/appengine v1.4.0
go: finding github.com/stretchr/testify v1.2.2
go: finding github.com/imdario/mergo v0.3.5
go: finding github.com/Azure/go-autorest/autorest v0.9.0
go: finding k8s.io/klog v0.3.0
go: finding gopkg.in/yaml.v2 v2.2.1
go: gopkg.in/yaml.v2@v2.2.1: unknown revision v2.2.1
go: finding github.com/davecgh/go-spew v1.1.0
go: finding github.com/gregjones/httpcache v0.0.0-20180305231024-9cad4c3443a7
go: finding cloud.google.com/go v0.34.0
go: finding cloud.google.com/go v0.38.0
go: finding github.com/evanphx/json-patch v4.2.0+incompatible
go: finding github.com/peterbourgon/diskv v2.0.1+incompatible
go: finding github.com/gophercloud/gophercloud v0.1.0
go: finding github.com/go-logr/logr v0.1.0
go: finding golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33
go: finding github.com/json-iterator/go v1.1.6
go: finding github.com/kisielk/gotool v1.0.0
go: finding github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421
go: finding gopkg.in/yaml.v2 v2.2.2
go: gopkg.in/yaml.v2@v2.2.2: unknown revision v2.2.2
go: finding golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4
go: finding golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a
go: finding github.com/google/btree v1.0.0
go: finding golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2
go: finding github.com/spf13/afero v1.2.2
go: finding github.com/google/uuid v1.1.1
go: finding github.com/google/gofuzz v1.0.0
go: error loading module requirements

$ docker run -it --rm \
        -v gopkg:/go/pkg:Z \
        -v {$PWD}:/build:Z -w /build \
        golang:1.12 \
        go build ./cmd/mc-router
go: finding github.com/golang/protobuf v1.2.0
go: finding github.com/onsi/gomega v1.7.0
go: finding github.com/docker/spdystream v0.0.0-20160310174837-449fdfce4d96
go: finding github.com/mxk/go-flowrate v0.0.0-20140419014527-cca7078d478f
go: finding golang.org/x/net v0.0.0-20180724234803-3673e40ba225
go: finding golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3
go: finding golang.org/x/sys v0.0.0-20190412213103-97732733099d
go: finding golang.org/x/tools v0.0.0-20181030221726-6c7e314b6563
go: finding github.com/Azure/go-autorest/logger v0.1.0
go: finding gopkg.in/yaml.v2 v2.2.2
go: finding gopkg.in/inf.v0 v0.9.1
go: finding github.com/onsi/ginkgo v1.11.0
go: finding github.com/kr/pretty v0.1.0
go: gopkg.in/inf.v0@v0.9.1: unknown revision v0.9.1
go: gopkg.in/yaml.v2@v2.2.2: unknown revision v2.2.2
go: finding github.com/Azure/go-autorest/autorest/mocks v0.1.0
go: finding github.com/elazarl/goproxy v0.0.0-20180725130230-947c36da3153
go: finding github.com/Azure/go-autorest/tracing v0.5.0
go: finding github.com/Azure/go-autorest/autorest/mocks v0.2.0
go: finding github.com/Azure/go-autorest/autorest/date v0.1.0
go: finding github.com/dgrijalva/jwt-go v3.2.0+incompatible
go: finding golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e
go: finding gopkg.in/yaml.v2 v2.2.1
go: gopkg.in/yaml.v2@v2.2.1: unknown revision v2.2.1
go: finding gopkg.in/yaml.v2 v2.2.8
go: gopkg.in/yaml.v2@v2.2.8: unknown revision v2.2.8
go: finding gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127
go: finding k8s.io/kube-openapi v0.0.0-20200410145947-61e04a5be9a6
go: gopkg.in/check.v1@v1.0.0-20180628173108-788fd7840127: git fetch -f origin refs/heads/*:refs/heads/* refs/tags/*:refs/tags/* in /go/pkg/mod/cache/vcs/7e5fa1eab4705eb80c9746632736cea906708d060702d529df6241d1c8c2c9f9: exit status 128:
        fatal: unable to access 'https://gopkg.in/check.v1/': server certificate verification failed. CAfile: none CRLfile: none
go: error loading module requirements

Heh, using Go 1.17.3 instead of the documented 1.12 does the trick and fixes this - builds fine with that latest Go.

I'll raise a PR to update the README.