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

fix(cmd/gf): go back current working directory after gf gen pb #3895

Merged
merged 1 commit into from
Nov 11, 2024
Merged

Conversation

oldme-git
Copy link
Member

@oldme-git oldme-git commented Oct 28, 2024

Dear review:
gen pb 中会使用 gfile.Chdir 改变当前工作路径,而 gen pbentity 则依赖当前工作路径生成 go_package in *.proto。如此一来,一旦两者同时进行单测,gen pbentity 生成的 *.proto 会出现意外的 go_package,导致单测失败。
image
详情查看:https://github.com/gogf/gf/actions/runs/11513842473/job/32051852646

fixed: #3894

@gqcn gqcn merged commit 5ba165a into master Nov 11, 2024
40 checks passed
@gqcn gqcn deleted the fix/3894 branch November 11, 2024 12:42
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: gen pb changes currect working
2 participants