fix: update root go.mod in prebuild.sh to resolve CI test failures (#3069)

This commit is contained in:
Libres-coder
2025-10-29 13:42:16 +08:00
committed by GitHub
parent 2a320f87a6
commit 268cf717fb

View File

@@ -18,9 +18,6 @@ for repo in ${envoy_repos[@]}; do
cp -RP envoy/$repo external/$repo
cd external/$repo
echo "gitdir: /parent/.git/modules/envoy/$repo" > .git
if [ -f "go.mod" ]; then
go mod tidy -go=${GO_VERSION}
fi
cd $WORK_DIR
done
@@ -33,8 +30,8 @@ for repo in ${istio_repos[@]}; do
cp -RP istio/$repo external/$repo
cd external/$repo
echo "gitdir: /parent/.git/modules/istio/$repo" > .git
if [ -f "go.mod" ]; then
go mod tidy -go=${GO_VERSION}
fi
cd $WORK_DIR
done
# Update root go.mod after all external dependencies are ready
go mod tidy