-
Notifications
You must be signed in to change notification settings - Fork 249
Remove generated Python client from git tracking #1810
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
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.
Overall LGTM! Just one comment about installation experience
@@ -30,14 +30,17 @@ for arg in "$@"; do | |||
fi | |||
done | |||
|
|||
# Check if the python client needs regeneration | |||
if [ "$repair" == true ] || [ ! -f "${dir}/client/python/polaris/catalog/__init__.py" ]; then | |||
./gradlew regeneratePythonClient |
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.
The generation will likely fails if user use MacOS, due to the .DS_Store
file thing : (.
This is not our fault, but to ensure a smoother installation experiences, shall we consider cleaning the folder before regenerating here or add .DS_Store
, poetry.lock
to the EXCLUDE_PATHS
/EXCLUDE_EXTENSION
in the regenerate.sh
?
We may also need to update the Spark Getting-Started example's Dockerfile to run the polaris/getting-started/spark/notebooks/Dockerfile Lines 24 to 30 in 1655dae
|
After #1675, we now generate the Python client on-demand when it's needed by tests or the CLI. With this, we can safely remove the Python client from being tracked in the repo and add its files to .gitignore
Fixes #755