[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
updating restic: go-build-system trying to resolve host names with nonex
From: |
Martin Castillo |
Subject: |
updating restic: go-build-system trying to resolve host names with nonexistent dnscache at [::1]:53 |
Date: |
Mon, 13 Mar 2023 01:26:43 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 |
Hi,
the packaged restic is at 0.9.6 while upstream is at 0.15.1. I thought
I'd try to update the package to learn how to package things for guix.
I'm a complete noob with that, and I have zero experience with go.
I'm using guix system in qemu with
qemu-system-x86_64 -drive media=disk,file=geex-unenc.img,format=raw
-bios /usr/share/ovmf/x64/OVMF.fd -m 2G -smp 3 -nic
user,model=virtio-net-pci,hostfwd=tcp::2223-:22 -enable-kvm
I used guix edit restic as a starting point and saved it in
~/packages/restic.scm. I removed all other programs, renamed restic to
restic-new, adjusted the hash, removed a patch for an older go, and used
a newer go version for the build system, as 1.17 is too old for restic 0.15.
Now the build fails trying to download dependencies:
$ guix build -L packages/ -K --fallback restic-new
...
go: downloading github.com/klauspost/compress v1.15.15
go: downloading golang.org/x/text v0.6.0
go: downloading github.com/pkg/xattr v0.4.10-0.20221120235825-35026bbbd013
go: downloading github.com/hashicorp/golang-lru/v2 v2.0.1
internal/backend/gs/gs.go:14:2: cloud.google.com/go/storage@v1.29.0: Get
"https://proxy.golang.org/cloud.google.com/go/storage/@v/v1.29.0.zip":
dial tcp: lookup proxy.golang.org on [::1]:53: read udp
[::1]:36438->[::1]:53: read: connection refused
internal/backend/azure/azure.go:22:2:
github.com/Azure/azure-sdk-for-go/sdk/azcore@v1.3.0: Get
"https://proxy.golang.org/github.com/%21azure/azure-sdk-for-go/sdk/azcore/@v/v1.3.0.zip":
dial tcp: lookup proxy.golang.org on [::1]:53: read udp
[::1]:52528->[::1]:53: read: connection refused
...
build failed: exit status 1
exit status 1
error: in phase 'build': uncaught exception:
%exception #<&invoke-error program: "go" arguments: ("run" "build.go")
exit-status: 1 term-signal: #f stop-signal: #f>
phase `build' failed after 2.4 seconds
command "go" "run" "build.go" failed with status 1
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
restic.scm
Description: Text Data
restic-new-0.15.1.drv.gz
Description: application/gzip
- updating restic: go-build-system trying to resolve host names with nonexistent dnscache at [::1]:53,
Martin Castillo <=