mirror of
https://gitee.com/dify_ai/dify.git
synced 2024-12-04 04:07:47 +08:00
16 lines
366 B
Plaintext
16 lines
366 B
Plaintext
|
#!/bin/bash
|
||
|
|
||
|
# rely on `poetry` in path
|
||
|
if ! command -v poetry &> /dev/null; then
|
||
|
echo "Installing Poetry ..."
|
||
|
pip install poetry
|
||
|
fi
|
||
|
|
||
|
# check poetry.lock in sync with pyproject.toml
|
||
|
poetry check -C api --lock
|
||
|
if [ $? -ne 0 ]; then
|
||
|
# update poetry.lock
|
||
|
# refreshing lockfile only without updating locked versions
|
||
|
poetry lock -C api --no-update
|
||
|
fi
|