mirror of
https://github.com/alibaba/higress.git
synced 2026-03-01 23:20:52 +08:00
fix: update root go.mod in prebuild.sh to resolve CI test failures (#3069)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user