Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 6 Jul 2019 23:30:33 +0200
From:      Matthias Fechner <idefix@fechner.net>
To:        dg@syrec.org
Cc:        freebsd-ports@freebsd.org
Subject:   Re: How to handle go dependencies
Message-ID:  <52f3b04f-bf8d-0ec3-e3de-32c6d3a39485@fechner.net>
In-Reply-To: <20190706194835.GA86243@xombo.localdomain>
References:  <5d0e8e03.1c69fb81.5e249.9640@mx.google.com> <CAP7rwchtYTf5XPoTgk6B2drdPjzP%2B5opq-sN=kGsTJei6dT_Dg@mail.gmail.com> <20190622205205.GB40599@xombo.localdomain> <4de2a97c-8c41-74e4-cda1-4fdec9554e8f@fechner.net> <20190623095737.GA89814@urd.tobik.me> <d033ae4e-0d9c-183e-bd59-58117dde9460@fechner.net> <20190623214048.GE40599@xombo.localdomain> <07e99b4c-cf7e-49bb-d0a0-66a24c3a563f@fechner.net> <20190706194835.GA86243@xombo.localdomain>

next in thread | previous in thread | raw e-mail | index | archive | help
Am 06.07.2019 um 21:48 schrieb Dmitri Goutnik:
> -USES= gmake go:no_targets
> +USES= gmake go:modules,no_targets
>
> It adds -mod=vendor build flag that tells Go to not try to download
> anything and assume that all dependencies are already in vendor directory.

hm, it does not seems to have any impact it does not stop to complain:
# go install
go: finding github.com/grpc-ecosystem/go-grpc-middleware v1.0.0
go: finding github.com/cloudflare/tableflip
v0.0.0-20190329062924-8392f1641731
go: finding google.golang.org/genproto v0.0.0-20181202183823-bd91e49a0898
go: finding github.com/libgit2/git2go v0.0.0-20190104134018-ecaeb7a21d47
go: finding github.com/prometheus/client_golang v0.9.3
go: finding golang.org/x/net v0.0.0-20190311183353-d8887717615a
go: finding gitlab.com/gitlab-org/gitaly-proto v1.32.0
go: finding github.com/stretchr/testify v1.2.2
go: finding gitlab.com/gitlab-org/labkit v0.0.0-20190221122536-0c3fc7cdd57c
go: finding github.com/BurntSushi/toml v0.3.1
go: golang.org/x/net@v0.0.0-20190311183353-d8887717615a: Get
https://proxy.golang.org/golang.org/x/net/@v/v0.0.0-20190311183353-d8887717615a.info:
dial tcp 172.217.20.113:443: connect: can't assign requested address
go: gitlab.com/gitlab-org/gitaly-proto@v1.32.0: Get
https://proxy.golang.org/gitlab.com/gitlab-org/gitaly-proto/@v/v1.32.0.info:
dial tcp 172.217.20.113:443: connect: can't assign requested address
go: github.com/prometheus/client_golang@v0.9.3: Get
https://proxy.golang.org/github.com/prometheus/client_golang/@v/v0.9.3.info:
dial tcp 172.217.20.113:443: connect: can't assign requested address
go: finding github.com/tinylib/msgp v1.1.0
go: github.com/cloudflare/tableflip@v0.0.0-20190329062924-8392f1641731:
Get
https://proxy.golang.org/github.com/cloudflare/tableflip/@v/v0.0.0-20190329062924-8392f1641731.info:
dial tcp 172.217.20.113:443: connect: can't assign requested address
go: finding golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a
go: finding gopkg.in/yaml.v2 v2.2.2
go: finding github.com/getsentry/raven-go v0.1.2
go: gitlab.com/gitlab-org/labkit@v0.0.0-20190221122536-0c3fc7cdd57c: Get
https://proxy.golang.org/gitlab.com/gitlab-org/labkit/@v/v0.0.0-20190221122536-0c3fc7cdd57c.info:
dial tcp 172.217.20.113:443: connect: can't assign requested address
go: google.golang.org/genproto@v0.0.0-20181202183823-bd91e49a0898: Get
https://proxy.golang.org/google.golang.org/genproto/@v/v0.0.0-20181202183823-bd91e49a0898.info:
dial tcp 172.217.20.113:443: connect: can't assign requested address
go: github.com/BurntSushi/toml@v0.3.1: Get
https://proxy.golang.org/github.com/%21burnt%21sushi/toml/@v/v0.3.1.info:
dial tcp 172.217.20.113:443: connect: can't assign requested address
go: github.com/grpc-ecosystem/go-grpc-middleware@v1.0.0: Get
https://proxy.golang.org/github.com/grpc-ecosystem/go-grpc-middleware/@v/v1.0.0.info:
dial tcp 172.217.20.113:443: connect: can't assign requested address
go: github.com/stretchr/testify@v1.2.2: Get
https://proxy.golang.org/github.com/stretchr/testify/@v/v1.2.2.info:
dial tcp 172.217.20.113:443: connect: can't assign requested address
go: finding google.golang.org/grpc v1.16.0
go: github.com/libgit2/git2go@v0.0.0-20190104134018-ecaeb7a21d47: Get
https://proxy.golang.org/github.com/libgit2/git2go/@v/v0.0.0-20190104134018-ecaeb7a21d47.info:
dial tcp 172.217.20.113:443: connect: can't assign requested address
go: finding github.com/sirupsen/logrus v1.2.0
go: finding github.com/golang/protobuf v1.3.1
go: finding golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4
go: finding github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0
go: finding github.com/kelseyhightower/envconfig v1.3.0
go: golang.org/x/sys@v0.0.0-20190215142949-d0b11bdaac8a: Get
https://proxy.golang.org/golang.org/x/sys/@v/v0.0.0-20190215142949-d0b11bdaac8a.info:
dial tcp 172.217.20.113:443: connect: can't assign requested address
go: github.com/golang/protobuf@v1.3.1: Get
https://proxy.golang.org/github.com/golang/protobuf/@v/v1.3.1.info: dial
tcp 172.217.20.113:443: connect: can't assign requested address
go: google.golang.org/grpc@v1.16.0: Get
https://proxy.golang.org/google.golang.org/grpc/@v/v1.16.0.info: dial
tcp 172.217.20.113:443: connect: can't assign requested address
go: golang.org/x/sync@v0.0.0-20181221193216-37e7f081c4d4: Get
https://proxy.golang.org/golang.org/x/sync/@v/v0.0.0-20181221193216-37e7f081c4d4.info:
dial tcp 172.217.20.113:443: connect: can't assign requested address
go: github.com/tinylib/msgp@v1.1.0: Get
https://proxy.golang.org/github.com/tinylib/msgp/@v/v1.1.0.info: dial
tcp 172.217.20.113:443: connect: can't assign requested address
go: github.com/sirupsen/logrus@v1.2.0: Get
https://proxy.golang.org/github.com/sirupsen/logrus/@v/v1.2.0.info: dial
tcp 172.217.20.113:443: connect: can't assign requested address
go: gopkg.in/yaml.v2@v2.2.2: Get
https://proxy.golang.org/gopkg.in/yaml.v2/@v/v2.2.2.info: dial tcp
172.217.20.113:443: connect: can't assign requested address
go: github.com/getsentry/raven-go@v0.1.2: Get
https://proxy.golang.org/github.com/getsentry/raven-go/@v/v0.1.2.info:
dial tcp 172.217.20.113:443: connect: can't assign requested address
go: github.com/grpc-ecosystem/go-grpc-prometheus@v1.2.0: Get
https://proxy.golang.org/github.com/grpc-ecosystem/go-grpc-prometheus/@v/v1.2.0.info:
dial tcp 172.217.20.113:443: connect: can't assign requested address
go: github.com/kelseyhightower/envconfig@v1.3.0: Get
https://proxy.golang.org/github.com/kelseyhightower/envconfig/@v/v1.3.0.info:
dial tcp 172.217.20.113:443: connect: can't assign requested address
go: error loading module requirements
gmake[2]: *** [Makefile:54: build] Error 1
gmake[2]: Leaving directory
'/wrkdirs/usr/ports/devel/gitaly/work/gitaly-333775253533ae4e9e9e66dc12b636821646551f-333775253533ae4e9e9e66dc12b636821646551f/_build'
gmake[1]: *** [Makefile:25: build] Error 2
gmake[1]: Leaving directory
'/wrkdirs/usr/ports/devel/gitaly/work/gitaly-333775253533ae4e9e9e66dc12b636821646551f-333775253533ae4e9e9e66dc12b636821646551f'
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1


But what I see from the tuples definition, the version in GH_TUPLE
matches the version go tries to download.
But go seems to not find it.

Do you have further ideas?


Gruß
Matthias

Gruß
Matthias

-- 

"Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs, and the universe trying to
produce bigger and better idiots. So far, the universe is winning." --
Rich Cook




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?52f3b04f-bf8d-0ec3-e3de-32c6d3a39485>