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]Use make config under windows to report an error #3200

Open
zuoliang0 opened this issue Feb 18, 2024 · 3 comments
Open

[Question]Use make config under windows to report an error #3200

zuoliang0 opened this issue Feb 18, 2024 · 3 comments
Labels
question Further information is requested

Comments

@zuoliang0
Copy link

环境:Windows 11
使用git bash执行 make config
提示

PS C:\Users\用户名\work\goproject\helloworld> make config
'C:/' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
protoc --proto_path=./internal \
               --proto_path=./third_party \
               --go_out=paths=source_relative:./internal \
               
Missing input file.
make: *** [config] 错误 1

请问是脚本问题吗?还是说需要用linux环境才行?
感谢

@zuoliang0 zuoliang0 added the question Further information is requested label Feb 18, 2024
@kratos-ci-bot kratos-ci-bot changed the title [Question]windows下使用make config报错 [Question]Use make config under windows to report an error Feb 18, 2024
@kratos-ci-bot
Copy link
Collaborator

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


Environment: Windows 11
Use git bash to execute make config
hint

PS C:\Users\username\work\goproject\helloworld> make config
'C:/' is not recognized as an internal or external command or operable program
or batch file.
protoc --proto_path=./internal \
               --proto_path=./third_party \
               --go_out=paths=source_relative:./internal \
               
Missing input file.
make: *** [config] Error 1

Is it a script problem? Or do you need to use a linux environment?
Thanks

@kvii
Copy link
Contributor

kvii commented Feb 22, 2024

按照我在 这个 PR 中的方式更改你的代码,然后用 powershell 在工程根目录执行 make config 试试,看看能不能解决问题。如果问题解决了的话也回复一下,顺便把 issue 关了。

@kratos-ci-bot
Copy link
Collaborator

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


Change your code as I did in this PR, and then use powershell to execute it in the project root directory Try make config and see if that solves the problem. If the problem is solved, please reply and close the issue.

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

3 participants