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

[Question]Excuse me, what is the error when compiling? #3347

Open
amoyx opened this issue Jun 17, 2024 · 4 comments
Open

[Question]Excuse me, what is the error when compiling? #3347

amoyx opened this issue Jun 17, 2024 · 4 comments
Labels
question Further information is requested

Comments

@amoyx
Copy link

amoyx commented Jun 17, 2024

执行 make init 的时候报错
Makefile如下:
makefile

报错内容如下:
errors

请问要怎么处理?

@amoyx amoyx added the question Further information is requested label Jun 17, 2024
@kratos-ci-bot kratos-ci-bot changed the title [Question]请问编译时报错是怎么回事 [Question]Excuse me, what is the error when compiling? Jun 17, 2024
@shenqidebaozi
Copy link
Sponsor Member

gRPC has incompatible updates, please upgrade to Kratos version

@amoyx
Copy link
Author

amoyx commented Jun 18, 2024

gRPC has incompatible updates, please upgrade to Kratos version

是指升级Makefile中 go install github.com/go-kratos/kratos/cmd/kratos/v2@latest 这里的版本?

@kvii
Copy link
Contributor

kvii commented Sep 11, 2024

@amoyx 指的是升级 go.mod 里的版本。Makefile 里的那句代码的意思是“下载最新版本的 kratos 命令行生成工具“。这个工具和你依赖的 kratos 库不严谨地说,不是一个东西。

看你的命令行日志的最后几行。你实际上执行的应该是 make all,然后 make all 里调用的 make generate 导致的错误。从头到尾和 make init 没有半毛钱关系。

@kratos-ci-bot
Copy link
Collaborator

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


@amoyx refers to upgrading the version in go.mod. The code in the Makefile means "download the latest version of the kratos command line generation tool." This tool and the kratos library you rely on are not strictly the same thing.

Look at the last few lines of your command line log. What you actually executed should be make all, and then the error caused by make generate called in make all. It has nothing to do with make init from beginning to end.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants