nemo_go icon indicating copy to clipboard operation
nemo_go copied to clipboard

build失败

Open kuron3k0 opened this issue 3 years ago • 3 comments

师傅,我跑build.sh好像不成功,爆这个错

➜  nemo_go git:(main) ✗ CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -ldflags "-s -w" -trimpath -o server_darwin_amd64 cmd/server/main.go
# github.com/mat/besticon/besticon
/Users/kuron3k0/go/pkg/mod/github.com/mat/[email protected]+incompatible/besticon/caching.go:28:23: cannot use siteURL (variable of type string) as type context.Context in argument to iconCache.Get:
	string does not implement context.Context (missing Deadline method)
/Users/kuron3k0/go/pkg/mod/github.com/mat/[email protected]+incompatible/besticon/caching.go:47:13: impossible type assertion: ctx.(string)
	string does not implement context.Context (missing Deadline method)
# github.com/hanc00l/nemo_go/pkg/task/domainscan
/Users/kuron3k0/go/pkg/mod/github.com/hanc00l/[email protected]/pkg/task/domainscan/crawler.go:86:34: cannot use targets (variable of type []*"github.com/hanc00l/crawlergo/pkg/model".Request) as type []*"crawlergo/pkg/model".Request in argument to pkg.NewCrawlerTask
/Users/kuron3k0/go/pkg/mod/github.com/hanc00l/[email protected]/pkg/task/domainscan/crawler.go:307:34: cannot use targets (variable of type []*"github.com/hanc00l/crawlergo/pkg/model".Request) as type []*"crawlergo/pkg/model".Request in argument to pkg.NewCrawlerTask
/Users/kuron3k0/go/pkg/mod/github.com/hanc00l/[email protected]/pkg/task/domainscan/crawler.go:341:6: cannot use *r (variable of type "crawlergo/pkg/model".Request) as type "github.com/hanc00l/crawlergo/pkg/model".Request in argument to func(req model2.Request) {…}

kuron3k0 avatar Aug 09 '22 09:08 kuron3k0

crawlergo是我fork的https://github.com/Qianlitp/crawlergo大牛的库,可能导入本地的时候有点小问题,我这边之前也是手工处理的。因为Qianlitp大牛的库不能直接导入,所以我作了一些修改,修改过程中可能有些处理不太完善。应该是导入库方面有点问题,我研究一下,近期会完善一下。或者你看能不能有更好的方式,一起研究一下。

hanc00l avatar Aug 11 '22 08:08 hanc00l

刚看到Qianlitp大牛的代码有更新了,近期我重构一下cralwergo的代码,争取解决这个问题。

hanc00l avatar Aug 11 '22 08:08 hanc00l

已在2.5.7中更新crawlergo的代码。

hanc00l avatar Aug 16 '22 12:08 hanc00l