wealdtech / coredns-ens

Apache License 2.0
57 stars 15 forks source link

build-standalone.sh broken, error on build #12

Closed diwu1989 closed 2 years ago

diwu1989 commented 2 years ago

On a clean checkout of this repo, running build-standalone.sh does not work. build log:

Cloning coredns repo...
Cloning into 'coredns'...
remote: Enumerating objects: 60748, done.
remote: Counting objects: 100% (74/74), done.
remote: Compressing objects: 100% (53/53), done.
remote: Total 60748 (delta 44), reused 32 (delta 21), pack-reused 60674
Receiving objects: 100% (60748/60748), 97.17 MiB | 1.75 MiB/s, done.
Resolving deltas: 100% (33612/33612), done.
Note: switching to 'v1.8.3'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

  git switch -c <new-branch-name>

Or undo this operation with:

  git switch -

Turn off this advice by setting config variable advice.detachedHead to false

HEAD is now at 4293992b Up release to 1.8.3 (#4486)
Patching plugin config...
1264
rewrite:rewrite
1301
Patching go modules...
1689
)
    k8s.io/klog v1.0.0
1780
go: downloading github.com/coredns/caddy v1.1.0
go: downloading github.com/miekg/dns v1.1.38
go: downloading github.com/ethereum/go-ethereum v1.10.4
go: downloading github.com/wealdtech/go-ens/v3 v3.5.0
go: downloading golang.org/x/sys v0.0.0-20210616094352-59db8d763f22
go: downloading golang.org/x/crypto v0.0.0-20210616213533-5ff15b29337e
go: downloading github.com/ipfs/go-cid v0.0.7
go: downloading github.com/wealdtech/go-multicodec v1.4.0
go: downloading github.com/btcsuite/btcd v0.22.0-beta
go: downloading github.com/klauspost/cpuid/v2 v2.0.6
go: downloading github.com/google/uuid v1.2.0
go: downloading github.com/gballet/go-libpcsclite v0.0.0-20191108122812-4678299bea08
go: downloading github.com/karalabe/usb v0.0.0-20210518091819-4ea20957c210
go: downloading github.com/peterh/liner v1.2.1
go: downloading github.com/shirou/gopsutil v3.21.5+incompatible
go: downloading github.com/VictoriaMetrics/fastcache v1.6.0
go: downloading github.com/holiman/uint256 v1.2.0
go: downloading github.com/olekukonko/tablewriter v0.0.5
go: downloading github.com/syndtr/goleveldb v1.0.1-0.20210305035536-64b5b1c73954
go: downloading github.com/huin/goupnp v1.0.1-0.20210310174557-0ca763054c88
go: downloading github.com/jackpal/go-nat-pmp v1.0.2
go: downloading github.com/mattn/go-runewidth v0.0.13
go: downloading github.com/tklauser/go-sysconf v0.3.6
go: downloading github.com/StackExchange/wmi v0.0.0-20210224194228-fe8f1750fd46
go: downloading github.com/rivo/uniseg v0.2.0
go: downloading github.com/go-ole/go-ole v1.2.5
go: downloading github.com/tklauser/numcpus v0.2.2
go: module github.com/golang/protobuf is deprecated: Use the "google.golang.org/protobuf" module instead.
go get: upgraded github.com/golang/protobuf v1.4.3 => v1.5.2
go get: upgraded github.com/gorilla/websocket v1.4.0 => v1.4.2
go get: upgraded github.com/hashicorp/golang-lru v0.5.4 => v0.5.5-0.20210104140557-80c98217689d
go get: upgraded golang.org/x/crypto v0.0.0-20201221181555-eec23a3978ad => v0.0.0-20210616213533-5ff15b29337e
go get: upgraded golang.org/x/sys v0.0.0-20201214210602-f9fddec55a1e => v0.0.0-20210616094352-59db8d763f22
Building...
+ git describe --dirty --always
CGO_ENABLED=1  go build -v -ldflags="-s -w -X github.com/coredns/coredns/coremain.GitCommit=4293992b-dirty" -o coredns
+ CGO_ENABLED=1
+ go build -v '-ldflags=-s -w -X github.com/coredns/coredns/coremain.GitCommit=4293992b-dirty' -o coredns
/Users/diwu/go/pkg/mod/go.etcd.io/etcd@v0.5.0-alpha.5.0.20200306183522-221f0cc107cb/pkg/logutil/zap_journal.go:29:2: missing go.sum entry needed to verify package github.com/coreos/go-systemd/v22/journal (imported by go.etcd.io/etcd/pkg/logutil) is provided by exactly one module; to add:
    go get go.etcd.io/etcd/pkg/logutil@v0.5.0-alpha.5.0.20200306183522-221f0cc107cb
/Users/diwu/go/pkg/mod/k8s.io/apimachinery@v0.20.2/pkg/util/diff/diff.go:27:2: missing go.sum entry for module providing package github.com/google/go-cmp/cmp (imported by k8s.io/apimachinery/pkg/util/diff); to add:
    go get k8s.io/apimachinery/pkg/util/diff@v0.20.2
/Users/diwu/go/pkg/mod/k8s.io/apimachinery@v0.20.2/pkg/apis/meta/v1/micro_time_fuzz.go:24:2: missing go.sum entry for module providing package github.com/google/gofuzz (imported by k8s.io/apimachinery/pkg/apis/meta/v1); to add:
    go get k8s.io/apimachinery/pkg/apis/meta/v1@v0.20.2
/Users/diwu/go/pkg/mod/golang.org/x/crypto@v0.0.0-20210616213533-5ff15b29337e/ssh/terminal/terminal.go:14:2: missing go.sum entry for module providing package golang.org/x/term (imported by golang.org/x/crypto/ssh/terminal); to add:
    go get golang.org/x/crypto/ssh/terminal@v0.0.0-20210616213533-5ff15b29337e
/Users/diwu/go/pkg/mod/k8s.io/client-go@v0.20.2/util/workqueue/default_rate_limiters.go:24:2: missing go.sum entry for module providing package golang.org/x/time/rate (imported by gopkg.in/DataDog/dd-trace-go.v1/ddtrace/tracer); to add:
    go get gopkg.in/DataDog/dd-trace-go.v1/ddtrace/tracer@v1.28.0
make: *** [coredns] Error 1
mcdee commented 2 years ago

Thank you for reporting this. This is due to changes in go's module system as it upgrades versions. A fix for this is incoming.