dream02008 2019-03-28 19:11
浏览 176

由于无法获取依赖项而无法构建coredns项目

I tried to build coredns https://github.com/coredns/coredns/ by cloning the repo in my gopath and running make, which produced the following error

GO111MODULE=on go generate coredns.go
GO111MODULE=on CGO_ENABLED=0  go build -v -ldflags="-s -w -X github.com/coredns/coredns/coremain.GitCommit=f6eb2a4" -o coredns
../../../../pkg/mod/google.golang.org/grpc@v1.19.0/internal/channelz/types_linux.go:26:2: 
../../../../pkg/mod/golang.org/x/sys@v0.0.0-20190215142949-d0b11bdaac8a/unix/affinity_linux.go:1:1: expected 'package', found 'EOF'
Makefile:17: recipe for target 'coredns' failed
make: *** [coredns] Error 1

I ran go mod tidy and it fixed the error due x/sys but after that another error appeared

# github.com/miekg/dns
Dev/Projects/golang/gopath/pkg/mod/github.com/miekg/dns@v1.1.6/scan.go:436:29: string not terminated
Dev/Projects/golang/gopath/pkg/mod/github.com/miekg/dns@v1.1.6/scan.go:436:44: syntax error: unexpected EOF, expecting comma or )

when I tried go get for this package I got the same error, I dont have this package in my gopath neither do I have it in my cache directory.

whats seems to be the problem here?

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 划分vlan后不通了
    • ¥15 GDI处理通道视频时总是带有白色锯齿
    • ¥20 用雷电模拟器安装百达屋apk一直闪退
    • ¥15 算能科技20240506咨询(拒绝大模型回答)
    • ¥15 自适应 AR 模型 参数估计Matlab程序
    • ¥100 角动量包络面如何用MATLAB绘制
    • ¥15 merge函数占用内存过大
    • ¥15 Revit2020下载问题
    • ¥15 使用EMD去噪处理RML2016数据集时候的原理
    • ¥15 神经网络预测均方误差很小 但是图像上看着差别太大