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

cmd/gf: gf gen enums Generate path path error #4150

Open
PandaPy opened this issue Feb 13, 2025 · 0 comments
Open

cmd/gf: gf gen enums Generate path path error #4150

PandaPy opened this issue Feb 13, 2025 · 0 comments
Labels
bug It is confirmed a bug, but don't worry, we'll handle it.

Comments

@PandaPy
Copy link

PandaPy commented Feb 13, 2025

Go version

go1.22.3

GoFrame version

v2.8.3

Can this bug be reproduced with the latest release?

Option Yes

What did you do?

使用默认参数执行gf gen enums

What did you see happen?

生成的枚举值注册Go代码文件路径为 项目目录/api/internal/packed/packed_enums.go

What did you expect to see?

期望路径应该是 项目目录/internal/packed/packed_enums.go,貌似是因为#3996提交的合并产生的问题,修改了src的默认分析地址为api路径下,同时导致生成文件也出现问题

@PandaPy PandaPy added the bug It is confirmed a bug, but don't worry, we'll handle it. label Feb 13, 2025
@Issues-translate-bot Issues-translate-bot changed the title cmd/gf: gf gen enums 生成路径路径错误 cmd/gf: gf gen enums Generate path path error Feb 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug It is confirmed a bug, but don't worry, we'll handle it.
Projects
None yet
Development

No branches or pull requests

1 participant