Copilot commented on code in PR #13665:
URL: https://github.com/apache/gluten/pull/13665#discussion_r4607423764
##########
ep/build-velox/src/get-velox.sh:
##########
@@ -137,6 +137,16 @@ function prepare_velox_source_code {
git submodule update --init --recursive
}
+function apply_flex_lexer_patch {
+ local patch_name="${CURRENT_DIR}/flex-lexer-yyread.patch"
+ if git -C "$VELOX_HOME" apply --reverse --check "$patch_name" > /dev/null
2>&1; then
+ echo "Flex lexer compatibility patch already applied"
+ else
+ echo "Applying Flex lexer compatibility patch..."
+ git -C "$VELOX_HOME" apply "$patch_name"
Review Comment:
A relative `--velox_home` now causes source preparation to fail:
`prepare_velox_source_code` has already changed into the checkout, so
`--velox_home=velox-src` makes both new `git -C` commands target
`velox-src/velox-src`. The reverse check hides the error, then the forward
apply terminates the script under `set -e`. Run both patch commands in the
current checkout without `-C`, or normalize `VELOX_HOME` to an absolute path
before changing directories.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]