mirror of
https://gitee.com/johng/gf
synced 2026-06-06 02:25:47 +08:00
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:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user