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

能支持下 go install的方式安装ktctl吗? 谢谢 #301

Closed
izouxv opened this issue Apr 15, 2022 · 7 comments
Closed

能支持下 go install的方式安装ktctl吗? 谢谢 #301

izouxv opened this issue Apr 15, 2022 · 7 comments

Comments

@izouxv
Copy link

izouxv commented Apr 15, 2022

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

@izouxv
Copy link
Author

izouxv commented Apr 15, 2022

你会说人话吗? 这个需求脑残吗?

@izouxv
Copy link
Author

izouxv commented Apr 15, 2022

Screen Shot 2022-04-15 at 17 17 57

@izouxv
Copy link
Author

izouxv commented Apr 15, 2022

这个不是很基本的需求吗? google那么多app都支持 go install的方式安装.

@linfan
Copy link
Collaborator

linfan commented Apr 18, 2022

@yearnxiao 请注意用语文明

@izouxv 验证了一下,确实现在 go install 直接拉 kt-connect 会报错,这个我们近期会查一下原因

@linfan linfan added this to the v0.3.3 milestone Apr 18, 2022
@linfan
Copy link
Collaborator

linfan commented Apr 19, 2022

已确认原因是由于kt-connectgo.mod配置包含一条replace记录导致无法直接go install <Git仓库地址>安装。

一种绕过方法是先git clone代码到本地,然后进入代码库内执行go install安装:

git clone https://github.com/alibaba/kt-connect.git
cd kt-connect/cmd/ktctl
go install

参考:

@linfan linfan closed this as completed Apr 19, 2022
@izouxv
Copy link
Author

izouxv commented Apr 19, 2022

可以在cmd里面内建一个mod. 然后就可以直接 go install github.com/alibaba/kt-connect/cmd/ktctl, 不需要git clone, 附件里面有个例子就不提pr了. . 直接执行就可以 go install github.com/alibaba/kt-connect/cmd/ktctl2 . 试试看.
cmd.zip

@izouxv
Copy link
Author

izouxv commented Apr 19, 2022

@linfan 把cmd替换调. 试试 go install github.com/alibaba/kt-connect/cmd/ktctl2

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

No branches or pull requests

2 participants