categraf go build 构建

Viewed 113

从github catetraf 下载的源码,电脑是 mac m1 架构是 arm64 用 go build 构建报

SECURITY ERROR
This download does NOT match an earlier download recorded in go.sum.
The bits may have been replaced on the origin server, or an attacker may
have intercepted the download attempt.

大家有解决的办法吗

1 Answers

image.png

我pull了一下最新代码,编译问题

verifying github.com/go-openapi/spec@v0.20.5: checksum mismatch
downloaded: h1:7VP8zufGZEIV+zfSwHGTWgbMINz/WhW3oFsA47Rhjsk=
go.sum: h1:skHa8av4VnAtJU5zyAUXrrdK/NDiVX8lchbG+BfcdrE=

SECURITY ERROR
This download does NOT match an earlier download recorded in go.sum.
The bits may have been replaced on the origin server, or an attacker may
have intercepted the download attempt.

For more information, see 'go help module-auth'.

我执行make 然后还是不行 看是这个github.com/go-openapi/spec@v0.20.5: checksum mismatch 有问题 我网上看这个解决方案 https://github.com/panjf2000/ants/issues/49 还是没解决 老师有空再帮忙看一下

把代码删了重新搞一遍试试

不行的 秦老师