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

[Feature] Hope gf CLI supports using go install to installed #2888

Closed
shuqingzai opened this issue Aug 21, 2023 · 9 comments
Closed

[Feature] Hope gf CLI supports using go install to installed #2888

shuqingzai opened this issue Aug 21, 2023 · 9 comments
Assignees
Labels
discuss We need discuss to make decision. enhancement

Comments

@shuqingzai
Copy link

shuqingzai commented Aug 21, 2023

目前安装 gf CLI 工具只能通过请求 github release 的方式安装,如果对于外网不友好的网络,这根本很难下载,没法使用 go proxy 的好处,我尝试使用 go install 的方式安装,但因为 go.mod 有替换依赖无法进行安装

参考:

replace (

#╰─○ go install github.com/gogf/gf/cmd/gf/v2@latest
go: github.com/gogf/gf/cmd/gf/v2@latest (in github.com/gogf/gf/cmd/gf/[email protected]):
	The go.mod file for the module providing named packages contains one or
	more replace directives. It must not contain directives that would cause
	it to be interpreted differently than if it were the main module.

如果可以直接 go install 进行安装命令行工具,那对于国内用户可真太有好了。。。

1. What version of Go and system type/arch are you using?

2. What version of GoFrame are you using?

3. Can this issue be re-produced with the latest release?

4. What did you do?

5. What did you expect to see?

6. What did you see instead?

@Issues-translate-bot Issues-translate-bot changed the title [Feature] 希望 gf CLI 支持使用 go install 的方式进行安装 [Feature] Hope gf CLI supports using go install to install Aug 21, 2023
@shuqingzai shuqingzai changed the title [Feature] Hope gf CLI supports using go install to install [Feature] Hope gf CLI supports using go install to installed Aug 21, 2023
@gqcn
Copy link
Member

gqcn commented Aug 23, 2023

@shuqingzai Let me have two thinks.

@shuqingzai
Copy link
Author

shuqingzai commented Aug 23, 2023

@shuqingzai Let me have two thinks.

@gqcn
啥??

@gqcn
Copy link
Member

gqcn commented Aug 24, 2023

@shuqingzai Let me have two thinks.

@gqcn 啥??

让我想两下。

@shuqingzai
Copy link
Author

shuqingzai commented Aug 24, 2023

@shuqingzai Let me have two thinks.

@gqcn 啥??

让我想两下。
@gqcn
我以为你有新的想法。。。。

如果是本地开发的问题,建议使用 go workspaces 的模式,更加友好,开发更加舒服,至少我目前是这么认为的

因为 gf 已经更新支持 1.18 ,开发模式也可以趁着这节点更新

@hailaz
Copy link
Member

hailaz commented Aug 24, 2023

#2619
之前有过提案

@Issues-translate-bot
Copy link

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


#2619
There was a proposal before

@gqcn
Copy link
Member

gqcn commented Aug 24, 2023

@shuqingzai Let me have two thinks.

@gqcn 啥??

让我想两下。
@gqcn
我以为你有新的想法。。。。

如果是本地开发的问题,建议使用 go workspaces 的模式,更加友好,开发更加舒服,至少我目前是这么认为的

因为 gf 已经更新支持 1.18 ,开发模式也可以趁着这节点更新

好的,我抽空研究一下呢,如果你有好的想法也可以直接提pr哈。

@Issues-translate-bot
Copy link

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


@shuqingzai Let me have two thinks.

@gqcn what? ?

Make me think twice.
@gqcn
I thought you had a new idea. . . .

If it is a local development problem, it is recommended to use the go workspaces model, which is more friendly and more comfortable to develop, at least I think so currently

Because gf has been updated to support 1.18, the development mode can also be updated at this node

Okay, I'll take the time to study it. If you have a good idea, you can directly submit a pr.

@gqcn gqcn added enhancement discuss We need discuss to make decision. labels Oct 8, 2023
@gqcn gqcn assigned gqcn and hailaz Oct 8, 2023
@github-actions github-actions bot removed the inactive label Nov 13, 2023
@hailaz
Copy link
Member

hailaz commented Nov 13, 2023

已经支持

go install github.com/gogf/gf/cmd/gf/v2@latest
go install github.com/gogf/gf/cmd/gf/[email protected]

@hailaz hailaz closed this as completed Nov 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discuss We need discuss to make decision. enhancement
Projects
None yet
Development

No branches or pull requests

4 participants