fix(cmd/gf): The problem of the command 'gen dao' becoming very slow (#4498)

fixed #4479

修复gf gen dao执行严重变慢的问题

主要调整,降级两个依赖库
`go get golang.org/x/tools@v0.26.0` // 直接依赖
`go get golang.org/x/text@v0.25.0` // 间接依赖

至于为什么这两个库会导致慢,还需要深入排查
This commit is contained in:
hailaz
2025-11-10 17:38:50 +08:00
committed by GitHub
parent c02148cd6b
commit fde47e8981
56 changed files with 1198 additions and 583 deletions

View File

@ -26,6 +26,8 @@ for file in `find ${workdir} -name go.mod`; do
fi
cd $goModPath
# Remove indirect dependencies
sed -i '/\/\/ indirect/d' go.mod
go mod tidy
# Remove toolchain line if exists
sed -i '' '/^toolchain/d' go.mod