1. 不能用太高版本的 golang 编译,1.12 版本左右的刚好。
2.
go get -tags 'release' -d -v ngrok/...
src/github.com/mattn/go-runewidth/runewidth.go:7:2: found packages uniseg (doc.go) and main (gen_breaktest.go) in /root/ngrok/src/github.com/rivo/uniseg
make: *** [Makefile:8: deps] Error 1
如果出现以上错误,则需要降低 go-runewidth 或 uniseg 的版本。ngrok 已经不更新了,而它的依赖包还在更新,就会导致错误。
本文讲述了在使用特定版本的Golang(1.12左右)编译ngrok时遇到的问题,由于ngrok的依赖包uniseg仍在更新,导致需要降低go-runewidth或uniseg的版本以解决Makefile中的错误。
1585

被折叠的 条评论
为什么被折叠?



