mirror of
https://github.com/qdrant/qdrant-client.git
synced 2026-07-23 11:11:01 -05:00
39 lines
780 B
Bash
Executable File
39 lines
780 B
Bash
Executable File
set -ex
|
|
|
|
# Ensure current path is project root
|
|
cd "$(dirname "$0")/../"
|
|
|
|
# Keep current version of file to check
|
|
ROOT_DIR=$(pwd)
|
|
CLIENT_DIR=$ROOT_DIR/qdrant_client
|
|
cd $CLIENT_DIR
|
|
|
|
async_files=$(ls -1 async*)
|
|
async_files+=" local/async_qdrant_local.py"
|
|
|
|
for file in $async_files ; do
|
|
cp $file{,.diff}
|
|
done
|
|
|
|
|
|
# Regenerate async client
|
|
$ROOT_DIR/tools/generate_async_client.sh
|
|
|
|
# Ensure generated files are the same as files in this repository
|
|
for file in $async_files ; do
|
|
if diff -wa $file{,.diff}
|
|
then
|
|
set +x
|
|
echo "No diffs found."
|
|
else
|
|
set +x
|
|
echo "ERROR: Generated $file is not consistent with file in this repository, see diff above."
|
|
exit 1
|
|
fi
|
|
done
|
|
|
|
# Cleanup
|
|
for file in $async_files ; do
|
|
rm -f $file.diff
|
|
done
|