Skip to content

Conversation

oldme-git
Copy link
Member

Dear review:
当 logic 中存在类似携带版本号的引入包名,例如:github.com/gogf/gf/v2,那么在生成 service 的时候,会导致该包名识别为 v2
故此当结尾以版本号结尾时,向前推进一位,使用正确的 gf 做为包名。

Fixed #3835

@gqcn gqcn changed the title fix(cmd/gf): gen service error when the package version number at the end fix(cmd/gf): gen service error when there's version number at the end of package import path Oct 5, 2024
@gqcn gqcn merged commit 183395f into master Oct 5, 2024
40 checks passed
@gqcn gqcn deleted the fix/3835 branch October 5, 2024 04:25
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

Successfully merging this pull request may close these issues.

cmd/gf: It makes error that the package version number at the end
2 participants