Skip to content

Commit 67c4bd1

Browse files
committed
fix script
Signed-off-by: spacewander <[email protected]>
1 parent 3799d6b commit 67c4bd1

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

patch/apply-patch.sh

+10
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,16 @@ done
2626
pushd "$TARGET_ISTIO_DIR"
2727
go mod tidy
2828
go install golang.org/x/tools/cmd/goimports@latest # required by codegen
29+
if [ "$(uname -s)" = "Darwin" ]; then
30+
sed -i '' -e 's/.\/site/.\/external\/istio/' ../../go.work
31+
else
32+
sed -i -e 's/.\/site/.\/external\/istio/' ../../go.work
33+
fi
2934
# go run will fail without adding `./external/istio` to go.work
3035
go run pkg/config/schema/codegen/tools/collections.main.go
36+
if [ "$(uname -s)" = "Darwin" ]; then
37+
sed -i '' -e 's/.\/external\/istio/.\/site/' ../../go.work
38+
else
39+
sed -i -e 's/.\/external\/istio/.\/site/' ../../go.work
40+
fi
3141
popd

0 commit comments

Comments
 (0)