Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

quick start并不quick, 需要自己go get 很多依赖包 #32

Closed
lealife opened this issue Apr 24, 2019 · 5 comments · Fixed by #38
Closed

quick start并不quick, 需要自己go get 很多依赖包 #32

lealife opened this issue Apr 24, 2019 · 5 comments · Fixed by #38
Labels
bug Something isn't working

Comments

@lealife
Copy link

lealife commented Apr 24, 2019

go get -u github.com/golang/protobuf/proto
go get github.com/pkg/errors
go get github.com/prometheus/client_golang/prometheus/promhttp
go get gopkg.in/go-playground/validator.v9
go get github.com/fsnotify/fsnotify
go get github.com/BurntSushi/toml
go get github.com/dgryski/go-farm

go get -u google.golang.org/grpc/encoding
go get -u github.com/golang.org/x/net
@Terry-Mao
Copy link
Member

go env 看下?如果支持go mod,会自动拉对应的第三方库

@lealife
Copy link
Author

lealife commented Apr 24, 2019

go version go1.11 darwin/amd64, 支持go mod

我在是

cd kratos-demo/cmd
go build

go build这一步出错的, 没有依赖

@lealife
Copy link
Author

lealife commented Apr 24, 2019

关键是生成的kratos-demo/里并没有go.mod, 所以不会自动拉依赖

@Terry-Mao Terry-Mao added bug Something isn't working compile labels Apr 24, 2019
@ctrysbita
Copy link
Contributor

@lealife 其实可以自己跑一下 go mod initgo mod tidy 的说

@Terry-Mao
Copy link
Member

等kratos tool 工具链,把生成的代码里带上默认的go.mod 就可以解决,目前正在fix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants