我需要在一个github开源项目的基础上进行二次开发,我按照他的说明执行了
go get github.com/zmap/zgrab2
cd $GOPATH/src/github.com/zmap/zgrab2
make
然后有下面的报错信息
cd cmd/zgrab2 && go build && cd ../..
go: downloading gopkg.in/yaml.v2 v2.2.2
go: downloading gopkg.in/mgo.v2 v2.0.0-20190816093944-a6b53ec6cb22
go: updates to go.sum needed, disabled by -mod=readonly
Makefile:24: recipe for target 'zgrab2' failed
make: *** [zgrab2] Error 1
请问这个报错是什么意思,我在网上找了半天也找不到相关的内容 我的go env设置是这样的
GO111MODULE="on"
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/sakura/.cache/go-build"
GOENV="/home/sakura/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/home/sakura/zmap/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/sakura/zmap"
GOPRIVATE=""
GOPROXY="https://goproxy.cn"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/home/sakura/zmap/pkg/mod/github.com/zmap/zgrab2@v0.1.7/go.mod"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build060658556=/tmp/go-build -gno-record-gcc-switches"
我的go版本是1.15.5 他的go.mod文件里面是1.12,难道是版本不兼容吗