help-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: updating restic: go-build-system trying to resolve host names with n


From: Martin Castillo
Subject: Re: updating restic: go-build-system trying to resolve host names with nonexistent dnscache at [::1]:53
Date: Wed, 15 Mar 2023 17:28:48 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0

Am 13.03.23 um 01:26 schrieb Martin Castillo> Now the build fails trying to download dependencies:

Ok, naturally, we don't want go to access the internet to get the dependencies.

I tried adding (inputs (list go-github-com-minio-sha256-simd))
to the package, but go still tries to get that. Go doesn't care about the symlinked package at src/github.com/minio/sha256-simd.

(Someone added that symlinking to go-build-system once, so it may have worked with earlier (<1.18) go versions? https://issues.guix.gnu.org/50493 references https://issues.guix.gnu.org/50227 , which I don't understand, but seems to try to get rid of the symlinking and replace it with something better?)

If I run go run build.go manually in the failed dir, the dependencies get downloaded to

[...]
/pkg/mod/cache/download/google.golang.org/genproto
/pkg/mod/cache/download/google.golang.org/grpc
/pkg/mod/cache/download/google.golang.org/protobuf
/pkg/mod/cache/download/go.opencensus.io
/pkg/mod/cache/download/gopkg.in/
/pkg/mod/cloud.google.com
/pkg/mod/github.com
/pkg/mod/golang.org
/pkg/mod/google.golang.org
/pkg/mod/go.opencensus.io@v0.24.0
/pkg/mod/gopkg.in
etc.

and not to /src/github.com/ or such, where inputs get symlinked at.

My conclusion: go-build-system needs to be updated to account for the new way go handles dependencies.

Is this correct? And is this issue 50227?


Martin


Looks like go trys using ipv6 for the dns lookup. But
/etc/resolv.conf says
nameserver 10.0.2.3

I don't have a nameserver running on ::1. And this inside qemu, where I didn't set up anything specifically for ipv6. I have only site and link local ipv6 addresses. Why does go-build-system try to resolve the host names at [::1]:53?

Martin Castillo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]