-
Notifications
You must be signed in to change notification settings - Fork 4k
GH-48576: [C++][FlightRPC] ODBC: add Mac setup script #48578
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
|
lidavidm
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible to guard the scripts with (e.g.) set -euo pipefail?
| odbc_install_script="${source_dir}/install_odbc.sh" | ||
|
|
||
| chmod +x "$odbc_install_script" | ||
| . "$odbc_install_script" /Library/Apache/ArrowFlightSQLODBC/lib/libarrow_flight_sql_odbc.dylib |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we have to source the script?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for catching it, I think it is not necessary. Removed sourcing of the script.
* added setup script for mac and platform folders Co-Authored-By: Alina (Xi) Li <alina.li@improving.com> Co-Authored-By: vic-tsang <victor.tsang@improving.com> Update install_odbc.sh
- Moved admin check upwards - removed sourcing of script that isn't required
3292db5 to
c64342b
Compare
alinaliBQ
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the review David, addressed all comments
| odbc_install_script="${source_dir}/install_odbc.sh" | ||
|
|
||
| chmod +x "$odbc_install_script" | ||
| . "$odbc_install_script" /Library/Apache/ArrowFlightSQLODBC/lib/libarrow_flight_sql_odbc.dylib |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for catching it, I think it is not necessary. Removed sourcing of the script.
@lidavidm Yes, I have added the guards at the beginning of scripts. |
| @@ -0,0 +1,78 @@ | |||
| #!/bin/sh | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are we using plain sh, or assuming something else (zsh on macOS?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch and I have changed to use #!/bin/bash. The scripts assume bash shells on macOS are used.
The scripts assume bash shells on macOS are used.
Rationale for this change
#48576
What changes are included in this PR?
Are these changes tested?
Will be tested in CI when PR is ready for review.
Tested locally on macOS.
Are there any user-facing changes?
N/A