lidavidm commented on code in PR #4029:
URL: https://github.com/apache/arrow-adbc/pull/4029#discussion_r2870245232


##########
ci/scripts/run_cgo_drivermgr_check.sh:
##########
@@ -32,15 +32,15 @@ main() {
 
   for f in "$@"; do
     fn=$(basename $f)
-    if [[ "$fn" == "adbc_driver_manager.cc" ]]; then
-        if ! diff -q "$f" "go/adbc/drivermgr/$fn" &>/dev/null; then
-            >&2 echo "OUT OF SYNC: $f differs from go/adbc/drivermgr/$fn"
+    if [[ "$fn" == "adbc.h" || "$fn" == "adbc_driver_manager.h" ]]; then
+        if ! diff -q "$f" "go/adbc/drivermgr/arrow-adbc/$fn" &>/dev/null; then
+            >&2 echo "OUT OF SYNC: $f differs from 
go/adbc/drivermgr/arrow-adbc/$fn"

Review Comment:
   You can just have the script do the copy, which will also fail pre-commit? 
(Assuming that the one in c/ is definitive)



##########
ci/scripts/run_cgo_drivermgr_check.sh:
##########
@@ -32,15 +32,15 @@ main() {
 
   for f in "$@"; do
     fn=$(basename $f)
-    if [[ "$fn" == "adbc_driver_manager.cc" ]]; then
-        if ! diff -q "$f" "go/adbc/drivermgr/$fn" &>/dev/null; then
-            >&2 echo "OUT OF SYNC: $f differs from go/adbc/drivermgr/$fn"
+    if [[ "$fn" == "adbc.h" || "$fn" == "adbc_driver_manager.h" ]]; then
+        if ! diff -q "$f" "go/adbc/drivermgr/arrow-adbc/$fn" &>/dev/null; then
+            >&2 echo "OUT OF SYNC: $f differs from 
go/adbc/drivermgr/arrow-adbc/$fn"

Review Comment:
   We could also just have the script do the copy, which will also fail 
pre-commit? (Assuming that the one in c/ is definitive)



-- 
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]

Reply via email to