试图用go:generate bundle -o=h2_bundle.go -prefix=http2 -tags=!nethttpomithttp2 github.com/zMrKrabz/fhttp/http2
运行bundle命令,但我得到了running "bundle": exec: "bundle": executable file not found in $PATH
。
每隔一个go命令都能正常工作,我已经完成了go get golang.org/x/tools/cmd/bundle
,但这并不能解决任何问题。
我试过运行go install golang.org/x/tools/cmd/bundle
,但我得到了cannot find package "." in: .../vendor/golang.org/x/tools/cmd/bundle
我刚刚尝试了go get golang.org/x/tools/cmd/bundle
,但在我的Go项目文件夹的之外:
C:Usersvonc>go get golang.org/x/tools/cmd/bundle
go: downloading golang.org/x/tools v0.1.2
go: downloading golang.org/x/sys v0.0.0-20210510120138-977fb7262007
C:Usersvonc>where bundle
C:Usersvoncgobinbundle.exe
这样,我确信我不会干扰go.mod项目,尽管由于Go1.16,go install
应该是这样工作的。