Files
higress/tools/hack/prebuild.sh
澄潭 f7a419770d upgrade to istio 1.19 (#1211)
Co-authored-by: CH3CHO <ch3cho@qq.com>
Co-authored-by: rinfx <893383980@qq.com>
2024-08-26 09:51:47 +08:00

41 lines
830 B
Bash
Executable File

#!/bin/bash
set -e
GO_VERSION=1.20
WORK_DIR=`cd $(dirname "$0")/../..;pwd`
cd $WORK_DIR
mkdir -p external/package
envoy_repos=("go-control-plane" "envoy")
for repo in ${envoy_repos[@]}; do
if [ -e external/$repo ];then
continue
fi
cp -r 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
istio_repos=("api" "client-go" "pkg" "istio" "proxy")
for repo in ${istio_repos[@]}; do
if [ -e external/$repo ];then
continue
fi
cp -r 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