mirror of
https://github.com/alibaba/higress.git
synced 2026-06-05 10:37:28 +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
|
cp -RP envoy/$repo external/$repo
|
||||||
cd external/$repo
|
cd external/$repo
|
||||||
echo "gitdir: /parent/.git/modules/envoy/$repo" > .git
|
echo "gitdir: /parent/.git/modules/envoy/$repo" > .git
|
||||||
if [ -f "go.mod" ]; then
|
|
||||||
go mod tidy -go=${GO_VERSION}
|
|
||||||
fi
|
|
||||||
cd $WORK_DIR
|
cd $WORK_DIR
|
||||||
done
|
done
|
||||||
|
|
||||||
@@ -33,8 +30,8 @@ for repo in ${istio_repos[@]}; do
|
|||||||
cp -RP istio/$repo external/$repo
|
cp -RP istio/$repo external/$repo
|
||||||
cd external/$repo
|
cd external/$repo
|
||||||
echo "gitdir: /parent/.git/modules/istio/$repo" > .git
|
echo "gitdir: /parent/.git/modules/istio/$repo" > .git
|
||||||
if [ -f "go.mod" ]; then
|
|
||||||
go mod tidy -go=${GO_VERSION}
|
|
||||||
fi
|
|
||||||
cd $WORK_DIR
|
cd $WORK_DIR
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# Update root go.mod after all external dependencies are ready
|
||||||
|
go mod tidy
|
||||||
|
|||||||
Reference in New Issue
Block a user